Skip to content

Commit 692b634

Browse files
committed
parse error test
1 parent 8ff0f79 commit 692b634

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/exception/ParseError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ class ParseError extends JsonRpcException
1010
{
1111
public function __construct(string $message = '')
1212
{
13-
parent::__construct("Parse error:" .$message , JsonRpcErrorCodes::PARSE_ERROR);
13+
parent::__construct("Parse error: " .$message , JsonRpcErrorCodes::PARSE_ERROR);
1414
}
1515
}

tests/unit/exception/ParseErrorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public function givesCorrectErrorInfo()
1616
{
1717
$exception = new ParseError('Received empty body');
1818
$this->assertEquals(JsonRpcErrorCodes::PARSE_ERROR, $exception->getCode());
19-
$this->assertEquals('parseError: Received empty body', $exception->getMessage());
19+
$this->assertEquals('Parse error: Received empty body', $exception->getMessage());
2020
}
2121
}

0 commit comments

Comments
 (0)