errmsg_025.phpt 331 B

1234567891011121314151617181920
  1. --TEST--
  2. errmsg: cannot inherit previously inherited constant
  3. --FILE--
  4. <?php
  5. interface test1 {
  6. const FOO = 10;
  7. }
  8. interface test2 {
  9. const FOO = 10;
  10. }
  11. class test implements test1, test2 {
  12. }
  13. echo "Done\n";
  14. ?>
  15. --EXPECTF--
  16. Fatal error: Class test inherits both test1::FOO and test2::FOO, which is ambiguous in %s on line %d