1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files
archived-php-src/Zend/tests/class_alias_016.phpt
T
Felipe Pena d9d47f3718 - New tests
2008-05-12 14:58:31 +00:00

22 lines
273 B
PHP

--TEST--
Testing creation of alias to global scope
--FILE--
<?php
namespace foo;
class bar {
}
class_alias('foo::bar', 'foo');
var_dump(new ::foo);
var_dump(new foo);
?>
--EXPECTF--
object(foo::bar)#%d (0) {
}
Fatal error: Class 'foo::foo' not found in %s on line %d