summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_030.phpt
blob: 69724159eedb61349e37f4e49b88b03644f54a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
030: Name ambiguity (import name & class name)
--FILE--
<?php
class Foo {
}

use A\B as Foo;

new Foo();
--EXPECTF--
Fatal error: Cannot use A\B as Foo because the name is already in use in %sns_030.php on line 5