mirror of
https://github.com/cerbero90/json-parser.git
synced 2025-06-09 18:04:57 +02: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 () {
|
it('throws a decoding exception if unable to decode a JSON fragment', function () {
|
||||||
JsonParser::parse(fixture('errors/decoding.json'))->traverse();
|
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 () {
|
it('lets the user handle decoding errors', function () {
|
||||||
$decodingErrors = [];
|
$decodingErrors = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user