missing-trait.phpt 221 B

123456789101112131415
  1. --TEST--
  2. Check error message for missing traits
  3. --FILE--
  4. <?php
  5. error_reporting(E_ALL);
  6. class TraitsTest {
  7. use THello;
  8. }
  9. $test = new TraitsTest();
  10. ?>
  11. --EXPECTF--
  12. Fatal error: Trait "THello" not found in %s on line %d