Example #1
0
 public function __construct()
 {
     parent::__construct(new Implementation());
 }
 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")));
 }