Code Duplication    Length = 7-7 lines in 3 locations

src/Context/BrowserContext.php 3 locations

@@ 283-289 (lines=7) @@
280
    /**
281
     * @Then /^(?:|I )should see (?P<count>\d+) "(?P<element>[^"]*)" in the (?P<index>\d+)(?:st|nd|rd|th) "(?P<parent>[^"]*)"$/
282
     */
283
    public function iShouldSeeNElementInTheNthParent($count, $element, $index, $parent)
284
    {
285
        $actual = $this->countElements($element, $index, $parent);
286
        if ($actual !== $count) {
287
            throw new \Exception("$actual occurrences of the '$element' element in '$parent' found");
288
        }
289
    }
290
291
    /**
292
     * @Then (I )should see less than :count :element in the :index :parent
@@ 294-300 (lines=7) @@
291
    /**
292
     * @Then (I )should see less than :count :element in the :index :parent
293
     */
294
    public function iShouldSeeLessThanNElementInTheNthParent($count, $element, $index, $parent)
295
    {
296
        $actual = $this->countElements($element, $index, $parent);
297
        if ($actual > $count) {
298
            throw new \Exception("$actual occurrences of the '$element' element in '$parent' found");
299
        }
300
    }
301
302
    /**
303
     * @Then (I )should see more than :count :element in the :index :parent
@@ 305-311 (lines=7) @@
302
    /**
303
     * @Then (I )should see more than :count :element in the :index :parent
304
     */
305
    public function iShouldSeeMoreThanNElementInTheNthParent($count, $element, $index, $parent)
306
    {
307
        $actual = $this->countElements($element, $index, $parent);
308
        if ($actual < $count) {
309
            throw new \Exception("$actual occurrences of the '$element' element in '$parent' found");
310
        }
311
    }
312
313
    /**
314
     * Checks, that element with given CSS is enabled