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