Code Duplication    Length = 7-7 lines in 3 locations

src/Context/BrowserContext.php 3 locations

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