AppserverIo\Appserver\Core\Api\AbstractService::getInitialContext PHP Method

getInitialContext() public method

(non-PHPdoc)
See also: ServiceInterface::getInitialContext()
public getInitialContext ( ) : InitialContext
return AppserverIo\Appserver\Core\InitialContext The initial Context
    public function getInitialContext()
    {
        return $this->initialContext;
    }

Usage Example

 /**
  * Test the new instance method.
  *
  * @return null
  */
 public function testNewInstance()
 {
     $className = 'AppserverIo\\Appserver\\Core\\Api\\Mock\\MockService';
     $instance = $this->service->newInstance($className, array($this->service->getInitialContext()));
     $this->assertInstanceOf($className, $instance);
 }