php-src/Zend/tests/ns_009.phpt
2020-08-09 22:03:36 +02:00

13 lines
173 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