Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

@@ 188-195 (lines=8) @@
185
     *
186
     * @Then the JSON node :node should contain :text
187
     */
188
    public function theJsonNodeShouldContain($node, $text)
189
    {
190
        $json = $this->getJson();
191
192
        $actual = $this->inspector->evaluate($json, $node);
193
194
        $this->assertContains($text, (string) $actual);
195
    }
196
197
    /**
198
     * Checks, that given JSON nodes contains values
@@ 214-221 (lines=8) @@
211
     *
212
     * @Then the JSON node :node should not contain :text
213
     */
214
    public function theJsonNodeShouldNotContain($node, $text)
215
    {
216
        $json = $this->getJson();
217
218
        $actual = $this->inspector->evaluate($json, $node);
219
220
        $this->assertNotContains($text, (string) $actual);
221
    }
222
223
    /**
224
     * Checks, that given JSON nodes does not contain given value