SimpleReflection::classOrInterfaceExistsSansAutoload PHP Method

classOrInterfaceExistsSansAutoload() public method

Needed to kill the autoload feature in PHP5 for classes created dynamically.
public classOrInterfaceExistsSansAutoload ( ) : boolean
return boolean True if defined.
    public function classOrInterfaceExistsSansAutoload()
    {
        return $this->classOrInterfaceExistsWithAutoload($this->interface, false);
    }

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::classOrInterfaceExistsSansAutoload