Completed
Push — master ( 52f5fa...9e931a )
by Kevin
14:15 queued 09:27
created

CurrentUrlIsHttps   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 3
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A assert() 0 6 1
1
<?php
2
3
namespace Magium\Assertions\Browser;
4
5
use Magium\Assertions\AbstractAssertion;
6
use PHPUnit\Framework\TestCase;
7
8
class CurrentUrlIsHttps extends AbstractAssertion
9
{
10
11
    const ASSERTION = 'Browser\CurrentUrlIsHttps';
12
13
14
    public function assert()
15
    {
16
        $url = $this->webDriver->getCurrentURL();
17
        $scheme = parse_url($url, PHP_URL_SCHEME);
18
        TestCase::assertEquals('https', $scheme);
19
    }
20
21
}
22