Completed
Pull Request — master (#121)
by Kevin
03:39
created

LogEmpty   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 1
cbo 5
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A assert() 0 8 2
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
}