From 150c76259edc1ab2093192293ba7ee33f311380e Mon Sep 17 00:00:00 2001 From: Sanpi Date: Tue, 21 Aug 2018 10:23:56 +0200 Subject: [PATCH] [json] A non null node should exists --- src/Context/JsonContext.php | 2 ++ 1 file changed, 2 insertions(+) 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));