Code Duplication    Length = 13-13 lines in 2 locations

lib/Assertions/Css/NotDisplayed.php 1 location

@@ 8-20 (lines=13) @@
5
use Magium\Assertions\SelectorAssertionInterface;
6
use Magium\WebDriver\WebDriver;
7
8
class NotDisplayed extends \Magium\Assertions\Element\NotDisplayed  implements SelectorAssertionInterface
9
{
10
11
    const ASSERTION = 'Css/NotDisplayed';
12
13
    public function assertSelector($selector)
14
    {
15
        $this->setSelector($selector);
16
        $this->setBy(WebDriver::BY_CSS_SELECTOR);
17
        $this->assert();
18
    }
19
20
}
21

lib/Assertions/Id/NotDisplayed.php 1 location

@@ 8-20 (lines=13) @@
5
use Magium\Assertions\SelectorAssertionInterface;
6
use Magium\WebDriver\WebDriver;
7
8
class NotDisplayed extends \Magium\Assertions\Element\NotDisplayed  implements SelectorAssertionInterface
9
{
10
11
    const ASSERTION = 'Id/NotDisplayed';
12
13
    public function assertSelector($selector)
14
    {
15
        $this->setSelector($selector);
16
        $this->setBy(WebDriver::BY_ID);
17
        $this->assert();
18
    }
19
20
}
21