xref: /PHP-8.0/Zend/tests/ns_008.phpt (revision 7aacc705)
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?>
13--EXPECT--
14test\foo
15