php-src/Zend/tests/class_alias_015.phpt
2008-12-04 20:12:30 +00:00

19 lines
211 B
PHP

--TEST--
Testing instantiation using namespace:: prefix
--FILE--
<?php
namespace foo;
class bar {
}
class_alias('foo\bar', 'foo\baz');
var_dump(new namespace\baz);
?>
--EXPECTF--
object(foo\bar)#%d (0) {
}