classOrInterfaceExistsSansAutoload() public method

Needed to kill the autoload feature in PHP5 for classes created dynamically.
public classOrInterfaceExistsSansAutoload ( ) : boolean
return boolean True if defined.
コード例 #1
0
 function testClassNonExistence()
 {
     $reflection = new SimpleReflection('UnknownThing');
     $this->assertFalse($reflection->classOrInterfaceExists());
     $this->assertFalse($reflection->classOrInterfaceExistsSansAutoload());
 }
コード例 #2
0
 function testInterfaceExistence()
 {
     $reflection = new SimpleReflection('AnyOldInterface');
     $this->assertTrue($reflection->classOrInterfaceExists());
     $this->assertTrue($reflection->classOrInterfaceExistsSansAutoload());
 }