Completed
Push — master ( 751b72...5449f6 )
by Kevin
06:38 queued 03:35
created

LogEmpty::assert()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 8
rs 9.4285
cc 2
eloc 5
nc 2
nop 0
1
<?php
2
3
namespace Magium\Assertions\Browser;
4
5
use Magium\Assertions\AbstractAssertion;
6
7
class LogEmpty extends AbstractAssertion
8
{
9
10
    const ASSERTION = 'Browser\LogEmpty';
11
12
    public function assert()
13
    {
14
        $log = $this->webDriver->manage()->getLog('browser');
15
        foreach ($log as $l) {
0 ignored issues
show
Bug introduced by
The expression $log of type object<Facebook\WebDrive...mote\WebDriverResponse> is not traversable.
Loading history...
16
            $this->logger->err('Message found: ' . serialize($l));
17
        }
18
        $this->testCase->assertCount(0, $log);
19
    }
20
21
}