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

16 lines
218 B
PHP

--TEST--
Testing creation of alias using an existing interface name
--FILE--
<?php
class foo { }
interface test { }
class_alias('foo', 'test');
?>
--EXPECTF--
Warning: Cannot redeclare class test in %s on line %d