php-src/Zend/tests/ns_008.phpt
2012-10-10 10:27:49 +08:00

14 lines
192 B
PHP

--TEST--
008: __NAMESPACE__ constant and runtime names (ns name)
--FILE--
<?php
namespace test;
class foo {
}
$x = __NAMESPACE__ . "\\foo";
echo get_class(new $x),"\n";
--EXPECT--
test\foo