1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 14:01:01 +02:00
Files
archived-php-src/Zend/tests/ns_030.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

14 lines
225 B
PHP

--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