Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

@@ 209-216 (lines=8) @@
206
     *
207
     * @Then the JSON node :node should contain :text
208
     */
209
    public function theJsonNodeShouldContain($node, $text)
210
    {
211
        $json = $this->getJson();
212
213
        $actual = $this->inspector->evaluate($json, $node);
214
215
        $this->assertContains($text, (string) $actual);
216
    }
217
218
    /**
219
     * Checks, that given JSON nodes contains values
@@ 244-251 (lines=8) @@
241
     *
242
     * @Then the JSON node :node should not contain :text
243
     */
244
    public function theJsonNodeShouldNotContain($node, $text)
245
    {
246
        $json = $this->getJson();
247
248
        $actual = $this->inspector->evaluate($json, $node);
249
250
        $this->assertNotContains($text, (string) $actual);
251
    }
252
253
    /**
254
     * Checks, that given JSON nodes does not contain given value