php-src/Zend/tests/name_collision_07.phpt

17 lines
288 B
Plaintext
Raw Normal View History

2016-05-05 00:42:16 +08:00
--TEST--
Class declaration colliding with import (in namespace)
--FILE--
<?php
namespace Foo {
class Bar {}
}
namespace Bazzle {
use Foo\Bar;
class Bar {}
}
?>
2016-05-05 00:42:16 +08:00
--EXPECTF--
Fatal error: Cannot redeclare class Bazzle\Bar (previously declared as local import) in %s on line %d