xref: /PHP-8.4/ext/reflection/tests/bug78697.phpt (revision bea2ff88)
1--TEST--
2Bug #78697: ReflectionClass::implementsInterface - inaccurate error message with traits
3--FILE--
4<?php
5trait T {}
6
7try {
8    (new ReflectionClass(new stdClass))->implementsInterface(T::class);
9} catch (ReflectionException $e) {
10    echo $e->getMessage();
11}
12?>
13--EXPECT--
14T is not an interface
15