php-src/Zend/tests/class_alias_010.phpt
Kalle Sommer Nielsen 67b907f059 Change the error message for colliding class/interface/trait names to be a little more clearer.
C:\> php -r "interface stdClass { }"
  Error: Cannot declare interface stdClass, because the name is already in use in Command Line Code on line 1
2015-03-26 01:44:23 +01:00

15 lines
238 B
PHP

--TEST--
Trying use an existing alias name in class declaration
--FILE--
<?php
interface a { }
class_alias('a', 'b');
class b { }
?>
--EXPECTF--
Warning: Cannot declare interface b, because the name is already in use in %s on line %d