Skip to content

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