summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_008.phpt
blob: a0ae4e2d8f5369c6502e0c4eac3428cce6e3e30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
008: __NAMESPACE__ constant and runtime names (ns name)
--FILE--
<?php
namespace test;

class foo {
}

$x = __NAMESPACE__ . "\\foo";
echo get_class(new $x),"\n";
--EXPECT--
test\foo