public function theJsonNodeShouldBeEqualTo($node, $text) { $json = $this->getJson(); $actual = $this->inspector->evaluate($json, $node); if ($actual != $text) { throw new \Exception(sprintf("The node value is '%s'", json_encode($actual))); } }