Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

@@ 226-233 (lines=8) @@
223
     *
224
     * @Then the JSON node :node should contain :text
225
     */
226
    public function theJsonNodeShouldContain($node, $text)
227
    {
228
        $json = $this->getJson();
229
230
        $actual = $this->inspector->evaluate($json, $node);
231
232
        $this->assertContains($text, (string) $actual);
233
    }
234
235
    /**
236
     * Checks, that given JSON nodes contains values
@@ 252-259 (lines=8) @@
249
     *
250
     * @Then the JSON node :node should not contain :text
251
     */
252
    public function theJsonNodeShouldNotContain($node, $text)
253
    {
254
        $json = $this->getJson();
255
256
        $actual = $this->inspector->evaluate($json, $node);
257
258
        $this->assertNotContains($text, (string) $actual);
259
    }
260
261
    /**
262
     * Checks, that given JSON nodes does not contain given value