Exemplo n.º 1
0
 /**
  * Test constructor
  */
 public function testEmptyConstructor()
 {
     $exception = new JsonRpcException();
     $this->assertEquals(JsonRpcException::CODE_UNKNOWN_ERROR, $exception->getCode());
     $this->assertEquals(JsonRpcException::getErrorMessage($exception->getCode()), $exception->getMessage());
     $this->assertNull($exception->getData());
     $this->assertNull($exception->getPrevious());
 }