Code Duplication    Length = 13-13 lines in 2 locations

lib/Assertions/Css/NotExists.php 1 location

@@ 8-20 (lines=13) @@
5
use Magium\Assertions\SelectorAssertionInterface;
6
use Magium\WebDriver\WebDriver;
7
8
class NotExists extends \Magium\Assertions\Element\NotExists implements SelectorAssertionInterface
9
{
10
11
    const ASSERTION = 'Css/NotExists';
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/NotExists.php 1 location

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