bug60165c.phpt 396 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #60165 (Aliasing unexisting trait should throw/trigger the exception/error)
  3. --FILE--
  4. <?php
  5. trait A {
  6. public function bar() {}
  7. }
  8. trait B {
  9. public function foo() {}
  10. }
  11. class MyClass {
  12. use A, B {
  13. foo as fooB;
  14. baz as foobar;
  15. }
  16. }
  17. ?>
  18. --EXPECTF--
  19. Fatal error: An alias (foobar) was defined for method baz(), but this method does not exist in %s on line %d