mirror of
https://github.com/php/php-src.git
synced 2024-12-24 01:09:58 +08:00
8204511d71
add tests
16 lines
233 B
PHP
16 lines
233 B
PHP
--TEST--
|
|
implementing the same interface twice
|
|
--FILE--
|
|
<?php
|
|
|
|
interface foo {
|
|
}
|
|
|
|
class bar implements foo, foo {
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot implement previously implemented interface foo in %s on line %d
|