isInterface() public method

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