xref: /PHP-7.0/Zend/tests/ns_030.phpt (revision 610c7fbe)
1--TEST--
2030: Name ambiguity (import name & class name)
3--FILE--
4<?php
5class Foo {
6}
7
8use A\B as Foo;
9
10new Foo();
11--EXPECTF--
12Fatal error: Cannot use A\B as Foo because the name is already in use in %sns_030.php on line 5
13