xref: /PHP-8.4/Zend/tests/ns_029.phpt (revision 1c30c5e7)
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 redeclare class Foo (previously declared as local import) in %sns_029.php on line 4
14