xref: /PHP-8.1/Zend/tests/ns_029.phpt (revision 7aacc705)
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?>
12--EXPECTF--
13Fatal error: Cannot declare class Foo because the name is already in use in %sns_029.php on line 4
14