php-src/Zend/tests/name_collision_02.phpt

12 lines
209 B
PHP

--TEST--
Object naming collision error: class/interface
--FILE--
<?php
class A { }
interface A { }
?>
--EXPECTF--
Fatal error: Cannot declare interface A, because the name is already in use in %s on line %d