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