Exists::assert()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Magium\Assertions\Element;
4
5
class Exists extends AbstractSelectorAssertion
6
{
7
8
    const ASSERTION = 'Element\Exists';
9
10
    public function assert()
11
    {
12
        $this->getTestCase()->assertWebDriverElement($this->webDriver->{$this->by}($this->selector));
13
14
    }
15
16
}