Пример #1
0
 public function __construct()
 {
     parent::__construct(new Implementation());
 }
Пример #2
0
 public function testServerCallExceptionInvalidCallback()
 {
     $this->setExpectedException("Seven\\RpcBundle\\Exception\\MethodNotExists");
     $implementationMock = $this->getMock("Seven\\RpcBundle\\Rpc\\Implementation");
     $server = new Server($implementationMock);
     $server->addHandler('rpcMethodGroup', 111);
     $this->assertEquals("parameter_1:parameter_2", $server->call('rpcMethodGroup', array("parameter_1", "parameter_2")));
 }