xref: /PHP-5.4/Zend/tests/ns_008.phpt (revision 610c7fbe)
1--TEST--
2008: __NAMESPACE__ constant and runtime names (ns name)
3--FILE--
4<?php
5namespace test;
6
7class foo {
8}
9
10$x = __NAMESPACE__ . "\\foo";
11echo get_class(new $x),"\n";
12--EXPECT--
13test\foo
14