AppserverIo\Appserver\Core\InitialContext::newReflectionClass PHP Method

newReflectionClass() public method

Returns a reflection class instance for the passed class name.
public newReflectionClass ( string $className ) : ReflectionClass
$className string The class name to return the reflection instance for
return ReflectionClass The reflection instance
    public function newReflectionClass($className)
    {
        return new \ReflectionClass($className);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Test the reflection API method.
  *
  * @return void
  */
 public function testNewReflectionClass()
 {
     $reflectionClass = $this->initialContext->newReflectionClass('AppserverIo\\Configuration\\Configuration');
     $this->assertInstanceOf('\\ReflectionClass', $reflectionClass);
 }