php-src/Zend/tests/ns_009.phpt

12 lines
171 B
Plaintext
Raw Normal View History

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