mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
16 lines
218 B
Plaintext
16 lines
218 B
Plaintext
|
--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
|