Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

@@ 214-221 (lines=8) @@
211
     *
212
     * @Then the JSON node :node should contain :text
213
     */
214
    public function theJsonNodeShouldContain($node, $text)
215
    {
216
        $json = $this->getJson();
217
218
        $actual = $this->inspector->evaluate($json, $node);
219
220
        $this->assertContains($text, (string) $actual);
221
    }
222
223
    /**
224
     * Checks, that given JSON nodes contains values
@@ 240-247 (lines=8) @@
237
     *
238
     * @Then the JSON node :node should not contain :text
239
     */
240
    public function theJsonNodeShouldNotContain($node, $text)
241
    {
242
        $json = $this->getJson();
243
244
        $actual = $this->inspector->evaluate($json, $node);
245
246
        $this->assertNotContains($text, (string) $actual);
247
    }
248
249
    /**
250
     * Checks, that given JSON nodes does not contain given value