Skip to content

Commit

Permalink
parse error test
Browse files Browse the repository at this point in the history
  • Loading branch information
DawidMazurek committed Feb 24, 2018
1 parent 8ff0f79 commit 692b634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/exception/ParseError.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ class ParseError extends JsonRpcException
{
public function __construct(string $message = '')
{
parent::__construct("Parse error:" .$message , JsonRpcErrorCodes::PARSE_ERROR);
parent::__construct("Parse error: " .$message , JsonRpcErrorCodes::PARSE_ERROR);
}
}
2 changes: 1 addition & 1 deletion tests/unit/exception/ParseErrorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ public function givesCorrectErrorInfo()
{
$exception = new ParseError('Received empty body');
$this->assertEquals(JsonRpcErrorCodes::PARSE_ERROR, $exception->getCode());
$this->assertEquals('parseError: Received empty body', $exception->getMessage());
$this->assertEquals('Parse error: Received empty body', $exception->getMessage());
}
}

0 comments on commit 692b634

Please sign in to comment.