php-src/Zend/tests/class_alias_010.phpt
2008-05-12 13:31:36 +00:00

15 lines
200 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 redeclare class b in %s on line %d