mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-01-17 13:08:16 +01:00
Update thrown exception
This commit is contained in:
parent
8d773bda24
commit
ecb14ce4ff
@ -25,7 +25,7 @@ it('lets the user handle syntax errors', function () {
|
||||
|
||||
it('throws a decoding exception if unable to decode a JSON fragment', function () {
|
||||
JsonParser::parse(fixture('errors/decoding.json'))->traverse();
|
||||
})->throws(DecodingException::class, 'Decoding error: Syntax error');
|
||||
})->throws(DecodingException::class, 'Decoding error: Problem while parsing a number');
|
||||
|
||||
it('lets the user handle decoding errors', function () {
|
||||
$decodingErrors = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user