Code Duplication    Length = 8-8 lines in 3 locations

src/Context/JsonContext.php 3 locations

@@ 204-211 (lines=8) @@
201
     *
202
     * @Then the JSON node :node should have :count element(s)
203
     */
204
    public function theJsonNodeShouldHaveElements($node, $count)
205
    {
206
        $json = $this->getJson();
207
208
        $actual = $this->inspector->evaluate($json, $node);
209
210
        $this->assertSame($count, sizeof((array) $actual));
211
    }
212
213
    /**
214
     * Checks, that given JSON node has less than N element(s)
@@ 218-225 (lines=8) @@
215
     *
216
     * @Then the JSON node :node should have less than :count element(s)
217
     */
218
    public function theJsonNodeShouldHaveLessThanElements($node, $count)
219
    {
220
        $json = $this->getJson();
221
222
        $actual = $this->inspector->evaluate($json, $node);
223
224
        $this->assertLessThan($count, sizeof((array) $actual));
225
    }
226
227
    /**
228
     * Checks, that given JSON node has more than N element(s)
@@ 232-239 (lines=8) @@
229
     *
230
     * @Then the JSON node :node should have more than :count element(s)
231
     */
232
    public function theJsonNodeShouldHaveMoreThanElements($node, $count)
233
    {
234
        $json = $this->getJson();
235
236
        $actual = $this->inspector->evaluate($json, $node);
237
238
        $this->assertMoreThan($count, sizeof((array) $actual));
239
    }
240
241
    /**
242
     * Checks, that given JSON node contains given value