php-src/Zend/tests/name_collision_06.phpt

12 lines
197 B
PHP

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