/** * testGetInterfacesReturnsIndirectlyImplementedInterface * * @return void * @covers \pdepend\reflection\api\StaticReflectionClass * @group reflection * @group reflection::api * @group unittest */ public function testGetInterfacesReturnsIndirectlyImplementedInterface() { $interface = new StaticReflectionInterface('IFoo', ''); $parentClass = new StaticReflectionInterface('ParentClass', ''); $parentClass->initInterfaces(array($interface)); $class = new StaticReflectionClass(__CLASS__, '', 0); $class->initParentClass($parentClass); $this->assertSame(array($interface), $class->getInterfaces()); }