newService() публичный Метод

(non-PHPdoc)
См. также: AppserverIo\Appserver\Core\InitialContext::newService()
public newService ( string $className ) : AppserverIo\Appserver\Core\Api\ServiceInterface
$className string The API service class name to return the instance for
Результат AppserverIo\Appserver\Core\Api\ServiceInterface The service instance
 /**
  * Test the new service method.
  *
  * @return null
  */
 public function testNewService()
 {
     $className = 'AppserverIo\\Appserver\\Core\\Api\\Mock\\MockService';
     $service = $this->service->newService($className);
     $this->assertInstanceOf($className, $service);
 }