xref: /PHP-7.2/Zend/tests/ns_008.phpt (revision 17ccbeec)
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