BetterReflectionTest\Reflection\ReflectionClassTest::testGetInterfaceNamesWillConsiderMultipleInheritanceLevelsAndImplementsOrderOverrides PHP Method

testGetInterfaceNamesWillConsiderMultipleInheritanceLevelsAndImplementsOrderOverrides() public method

    public function testGetInterfaceNamesWillConsiderMultipleInheritanceLevelsAndImplementsOrderOverrides()
    {
        $sourceLocator = new SingleFileSourceLocator(__DIR__ . '/../Fixture/ClassWithInterfaces.php');
        $this->assertSame([ClassWithInterfaces\A::class, ClassWithInterfacesOther\B::class, ClassWithInterfaces\C::class, ClassWithInterfacesOther\D::class, \E::class, ClassWithInterfaces\B::class], (new ClassReflector($sourceLocator))->reflect(ClassWithInterfaces\SubSubExampleClass::class)->getInterfaceNames(), 'Child class interfaces are retrieved in the correct numeric order (indexed by number)');
    }
ReflectionClassTest