php-src/Zend/tests/ns_008.phpt

14 lines
191 B
Plaintext
Raw Normal View History

2007-07-12 09:23:48 +00:00
--TEST--
008: __NAMESPACE__ constant and runtime names (ns name)
--FILE--
<?php
namespace test;
class foo {
}
2018-09-16 17:16:42 +00:00
$x = __NAMESPACE__ . "\\foo";
2007-07-12 09:23:48 +00:00
echo get_class(new $x),"\n";
--EXPECT--
2008-12-04 20:12:30 +00:00
test\foo