BetterReflectionTest\Reflection\ReflectionClassTest::testGetInterfacesFailsWithInterfaceExtendingFromClass PHP Method

testGetInterfacesFailsWithInterfaceExtendingFromClass() public method

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