objects_013.phpt 241 B

123456789101112131415
  1. --TEST--
  2. implementing the same interface twice
  3. --FILE--
  4. <?php
  5. interface foo {
  6. }
  7. class bar implements foo, foo {
  8. }
  9. echo "Done\n";
  10. ?>
  11. --EXPECTF--
  12. Fatal error: Class bar cannot implement previously implemented interface foo in %s on line %d