diff --git a/src/Context/JsonContext.php b/src/Context/JsonContext.php index 99630567..6b95c510 100644 --- a/src/Context/JsonContext.php +++ b/src/Context/JsonContext.php @@ -119,6 +119,8 @@ public function theJsonNodeShouldBeNull($node) */ public function theJsonNodeShouldNotBeNull($node) { + $this->theJsonNodeShouldExist($node); + $this->not(function () use ($node) { return $this->theJsonNodeShouldBeNull($node); }, sprintf('The node %s should not be null', $node));