php-src/Zend/tests/ns_009.phpt
Dmitry Stogov f32ffe9b43 Namespaces
2007-09-28 19:52:53 +00:00

12 lines
171 B
PHP
Executable File

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