mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
15 lines
271 B
Plaintext
15 lines
271 B
Plaintext
|
--TEST--
|
||
|
Testing interface declaration using the original and alias class name
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
interface a { }
|
||
|
|
||
|
class_alias('a', 'b');
|
||
|
|
||
|
interface c extends a, b { }
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Class c cannot implement previously implemented interface a in %s on line %d
|