Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

@@ 246-253 (lines=8) @@
243
     *
244
     * @Then the JSON node :node should contain :text
245
     */
246
    public function theJsonNodeShouldContain($node, $text)
247
    {
248
        $json = $this->getJson();
249
250
        $actual = $this->inspector->evaluate($json, $node);
251
252
        $this->assertContains($text, (string) $actual);
253
    }
254
255
    /**
256
     * Checks, that given JSON nodes contains values
@@ 272-279 (lines=8) @@
269
     *
270
     * @Then the JSON node :node should not contain :text
271
     */
272
    public function theJsonNodeShouldNotContain($node, $text)
273
    {
274
        $json = $this->getJson();
275
276
        $actual = $this->inspector->evaluate($json, $node);
277
278
        $this->assertNotContains($text, (string) $actual);
279
    }
280
281
    /**
282
     * Checks, that given JSON nodes does not contain given value