← Back
Editing: bug78697.phpt
--TEST-- Bug #78697: ReflectionClass::implementsInterface - inaccurate error message with traits --FILE-- <?php trait T {} try { (new ReflectionClass(new stdClass))->implementsInterface(T::class); } catch (ReflectionException $e) { echo $e->getMessage(); } ?> --EXPECT-- T is not an interface
Save File
Cancel