case-sensitive.phpt 417 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Check for problems with case sensitivity in compositions
  3. --FILE--
  4. <?php
  5. error_reporting(E_ALL);
  6. trait A {
  7. public function M1() {}
  8. public function M2() {}
  9. }
  10. trait B {
  11. public function M1() {}
  12. public function M2() {}
  13. }
  14. class MyClass {
  15. use A;
  16. use B;
  17. }
  18. ?>
  19. --EXPECTF--
  20. Fatal error: Trait method B::M1 has not been applied as MyClass::M1, because of collision with A::M1 in %s on line %d