summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_081.phpt
blob: 071cc986c9c095fecc4b35d4812364e3974b3632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
081: bracketed namespace with nested unbracketed namespace
--FILE--
<?php
namespace foo {
use \foo;
class bar {
    function __construct() {echo __METHOD__,"\n";}
}
new foo;
new bar;
namespace oops;
class foo {
    function __construct() {echo __METHOD__,"\n";}
}
use foo\bar as foo1;
new foo1;
new foo;
}
?>
===DONE===
--EXPECTF--
Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in %sns_081.php on line 9