Code Duplication    Length = 7-7 lines in 3 locations

src/Context/BrowserContext.php 3 locations

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