bug60165a.phpt 342 B

1234567891011121314151617
  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. class MyClass {
  9. use A {
  10. nonExistent as barA;
  11. }
  12. }
  13. ?>
  14. --EXPECTF--
  15. Fatal error: An alias (barA) was defined for method nonExistent(), but this method does not exist in %s on line %d