php-src/Zend/tests/name_collision_07.phpt
2016-05-04 18:43:11 +02:00

16 lines
280 B
PHP

--TEST--
Class declaration colliding with import (in namespace)
--FILE--
<?php
namespace Foo {
class Bar {}
}
namespace Bazzle {
use Foo\Bar;
class Bar {}
}
--EXPECTF--
Fatal error: Cannot declare class Bazzle\Bar because the name is already in use in %s on line %d