Skip to content

#58 Added error message if JSON decode failed for both pattern and v… #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

partikus
Copy link
Contributor

…alue

@partikus
Copy link
Contributor Author

@norzechowicz CR please


$this->assertFalse($this->matcher->match($value, $pattern));

$this->assertEquals($this->matcher->getError(), 'Invalid given JSON of value. Syntax error, malformed JSON');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any way to add also tests for JSON_ERROR_DEPTH, JSON_ERROR_STATE_MISMATCH, JSON_ERROR_CTRL_CHAR & JSON_ERROR_UTF8 json errors??

@norberttech norberttech merged commit 615247c into coduo:master Sep 23, 2016
@partikus partikus deleted the feature/improve-error-if-json-is-invalid branch September 23, 2016 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants