bug78697.phpt 302 B

1234567891011121314
  1. --TEST--
  2. Bug #78697: ReflectionClass::implementsInterface - inaccurate error message with traits
  3. --FILE--
  4. <?php
  5. trait T {}
  6. try {
  7. (new ReflectionClass(new stdClass))->implementsInterface(T::class);
  8. } catch (ReflectionException $e) {
  9. echo $e->getMessage();
  10. }
  11. ?>
  12. --EXPECT--
  13. T is not an interface