public function test_error_when_json_value_does_not_match_json_pattern()
{
$pattern = '{"a": @null@, "b": 4}';
$value = '{"a": null, "b": 5}';
$this->assertFalse($this->matcher->match($value, $pattern));
$this->assertSame('"5" does not match "4".', $this->matcher->getError());
$this->assertFalse(PHPMatcher::match($value, $pattern, $error));
$this->assertSame('"5" does not match "4".', $error);
}