php-src/Zend/tests/ns_008.phpt

14 lines
192 B
Plaintext
Raw Normal View History

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