isInterface() public method

Trivially determines if the class is an interface.
public isInterface ( )
コード例 #1
0
 function testDetectionOfInterfacesAlwaysFalse()
 {
     $reflection = new SimpleReflection('AnyOldThing');
     $this->assertFalse($reflection->isAbstract());
     $this->assertFalse($reflection->isInterface());
 }
コード例 #2
0
 function testInterfaceExistence()
 {
     $reflection = new SimpleReflection('AnyOldInterface');
     $this->assertTrue($reflection->classOrInterfaceExists());
     $this->assertTrue($reflection->classOrInterfaceExistsSansAutoload());
     $this->assertTrue($reflection->isInterface());
 }