xref: /PHP-5.6/Zend/tests/ns_060.phpt (revision 7126de49)
1--TEST--
2060: multiple namespaces per file
3--FILE--
4<?php
5namespace Foo;
6use Bar\A as B;
7class A {}
8$a = new B;
9$b = new A;
10echo get_class($a)."\n";
11echo get_class($b)."\n";
12namespace Bar;
13use Foo\A as B;
14$a = new B;
15$b = new A;
16echo get_class($a)."\n";
17echo get_class($b)."\n";
18class A {}
19--EXPECT--
20Bar\A
21Foo\A
22Foo\A
23Bar\A
24