php-src/Zend/tests/class_alias_010.phpt

15 lines
238 B
Plaintext
Raw Normal View History

2008-05-12 21:30:50 +08:00
--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