Add test case for conflicting use and use function alias (stas)

This commit is contained in:
Igor Wiedler 2013-08-21 16:31:17 +02:00
parent 4adf49eeaf
commit 2dbbb8ae4b

View file

@ -0,0 +1,20 @@
--TEST--
use and use function with the same alias
--FILE--
<?php
namespace {
function foo() {
return 'foo';
}
}
namespace x {
use foo as bar;
use function foo as bar;
var_dump(bar());
}
?>
--EXPECT--
string(3) "foo"