Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

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