BetterReflectionTest\Reflection\ReflectionClassTest::testGetInterfacesFailsWithInterfaceExtendingFromTrait PHP Метод

testGetInterfacesFailsWithInterfaceExtendingFromTrait() публичный Метод

    public function testGetInterfacesFailsWithInterfaceExtendingFromTrait()
    {
        $sourceLocator = new SingleFileSourceLocator(__DIR__ . '/../Fixture/InvalidInheritances.php');
        $reflector = new ClassReflector($sourceLocator);
        $class = $reflector->reflect(InvalidInheritances\InterfaceExtendingTrait::class);
        $this->expectException(NotAnInterfaceReflection::class);
        $class->getInterfaces();
    }
ReflectionClassTest