Code Duplication    Length = 7-7 lines in 3 locations

src/Context/BrowserContext.php 3 locations

@@ 257-263 (lines=7) @@
254
    /**
255
     * @Then /^(?:|I )should see (?P<count>\d+) "(?P<element>[^"]*)" in the (?P<index>\d+)(?:st|nd|rd|th) "(?P<parent>[^"]*)"$/
256
     */
257
    public function iShouldSeeNElementInTheNthParent($count, $element, $index, $parent)
258
    {
259
        $actual = $this->countElements($element, $index, $parent);
260
        if ($actual !== $count) {
261
            throw new \Exception("$actual occurrences of the '$element' element in '$parent' found");
262
        }
263
    }
264
265
    /**
266
     * @Then (I )should see less than :count :element in the :index :parent
@@ 268-274 (lines=7) @@
265
    /**
266
     * @Then (I )should see less than :count :element in the :index :parent
267
     */
268
    public function iShouldSeeLessThanNElementInTheNthParent($count, $element, $index, $parent)
269
    {
270
        $actual = $this->countElements($element, $index, $parent);
271
        if ($actual > $count) {
272
            throw new \Exception("$actual occurrences of the '$element' element in '$parent' found");
273
        }
274
    }
275
276
    /**
277
     * @Then (I )should see more than :count :element in the :index :parent
@@ 279-285 (lines=7) @@
276
    /**
277
     * @Then (I )should see more than :count :element in the :index :parent
278
     */
279
    public function iShouldSeeMoreThanNElementInTheNthParent($count, $element, $index, $parent)
280
    {
281
        $actual = $this->countElements($element, $index, $parent);
282
        if ($actual < $count) {
283
            throw new \Exception("$actual occurrences of the '$element' element in '$parent' found");
284
        }
285
    }
286
287
    /**
288
     * Checks, that element with given CSS is enabled