summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/bug78697.phpt
blob: b35d0f4d4ef642c0980a23e1352c12dd655240a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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