1
0
mirror of https://github.com/php/php-src.git synced 2026-04-08 00:22:52 +02:00
Files
archived-php-src/Zend/tests/ns_009.phpt
2012-10-10 10:27:49 +08:00

12 lines
171 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