Code Duplication    Length = 8-8 lines in 2 locations

src/Context/JsonContext.php 2 locations

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