Example #1
0
 protected function setUp()
 {
     if (empty($this->server)) {
         $this->server = new JsonRpcServer(new BaseJsonRpcSerializer());
         $this->server->addService(JsonRpcServer::DEFAULT_NAMESPACE, '\\AgentSIB\\JsonRpc\\Tests\\Services\\FirstJsonRpcService');
         $this->server->addService('second', '\\AgentSIB\\JsonRpc\\Tests\\Services\\SecondJsonRpcService');
     }
 }
 public function addService($namespace, $class, $version = 1)
 {
     parent::addService($namespace, $class, $version);
     // TODO: Change the autogenerated stub
 }
Example #3
0
 protected function setUp()
 {
     if (!$this->client) {
         $server = new JsonRpcServer(new BaseJsonRpcSerializer());
         $server->addService(JsonRpcServer::DEFAULT_NAMESPACE, '\\AgentSIB\\JsonRpc\\Tests\\Services\\FirstJsonRpcService');
         $this->client = new JsonRpcClient(new InternalJsonRpcTransport($server));
     }
 }