Replacement for the original getInterfaces() method which makes sure
that ClassReflection objects are returned instead of the
original ReflectionClass instances.
public getInterfaces ( ) : array |
||
return | array |
/** * @test */ public function getInterfacesReturnsFlowsClassReflection() { $class = new ClassReflection(__CLASS__); $interfaces = $class->getInterfaces(); foreach ($interfaces as $interface) { $this->assertInstanceOf(ClassReflection::class, $interface); } }