Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

@@ 199-206 (lines=8) @@
196
     *
197
     * @Then the JSON node :node should contain :text
198
     */
199
    public function theJsonNodeShouldContain($node, $text)
200
    {
201
        $json = $this->getJson();
202
203
        $actual = $this->inspector->evaluate($json, $node);
204
205
        $this->assertContains($text, (string) $actual);
206
    }
207
208
    /**
209
     * Checks, that given JSON nodes contains values
@@ 225-232 (lines=8) @@
222
     *
223
     * @Then the JSON node :node should not contain :text
224
     */
225
    public function theJsonNodeShouldNotContain($node, $text)
226
    {
227
        $json = $this->getJson();
228
229
        $actual = $this->inspector->evaluate($json, $node);
230
231
        $this->assertNotContains($text, (string) $actual);
232
    }
233
234
    /**
235
     * Checks, that given JSON nodes does not contain given value