Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function assert() |
||
15 | { |
||
16 | $title = $this->webDriver->getTitle(); |
||
17 | \PHPUnit_Framework_TestCase::assertNotNull($title); |
||
18 | \PHPUnit_Framework_TestCase::assertNotNull($this->title); |
||
19 | $title = trim($title); |
||
20 | $pos = strpos($title, $this->title); |
||
21 | \PHPUnit_Framework_TestCase::assertNotFalse($pos); |
||
22 | $testEquals = $pos + strlen($this->title); |
||
23 | $browserEquals = strlen($title); |
||
24 | \PHPUnit_Framework_TestCase::assertEquals($testEquals, $browserEquals); |
||
25 | } |
||
26 | |||
28 |