public function test_evaluate_invalid()
{
$json = new \Sanpi\Behatch\Json\Json('{}');
$inspector = $this->newTestedInstance('php');
$this->exception(function () use($json, $inspector) {
$inspector->evaluate($json, 'foo.bar');
})->hasMessage("Failed to evaluate expression 'foo.bar'");
}