SimpleReflection::classOrInterfaceExists PHP Method

classOrInterfaceExists() public method

Checks that a class or interface has been declared.
public classOrInterfaceExists ( ) : boolean
return boolean True if defined.
    public function classOrInterfaceExists()
    {
        return $this->classOrInterfaceExistsWithAutoload($this->interface, true);
    }

Usage Example

Ejemplo n.º 1
0
 function testClassNonExistence()
 {
     $reflection = new SimpleReflection('UnknownThing');
     $this->assertFalse($reflection->classOrInterfaceExists());
     $this->assertFalse($reflection->classOrInterfaceExistsSansAutoload());
 }
All Usage Examples Of SimpleReflection::classOrInterfaceExists