php-src/Zend/tests/ns_009.phpt
2018-10-14 19:45:12 +02:00

12 lines
170 B
PHP

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