Completed
Push — master ( 93a702...008e2c )
by Alexander
03:47
created

SessionProxy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 20
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A visit() 0 8 2
1
<?php
2
/**
3
 * This file is part of the phpunit-mink library.
4
 * For the full copyright and license information, please view
5
 * the LICENSE file that was distributed with this source code.
6
 *
7
 * @copyright Alexander Obuhovich <[email protected]>
8
 * @link      https://github.com/aik099/phpunit-mink
9
 */
10
11
namespace aik099\PHPUnit\Session;
12
13
14
use Behat\Mink\Session;
15
16
class SessionProxy extends Session
17
{
18
19
	/**
20
	 * Visit specified URL.
21
	 *
22
	 * @param string $url Url of the page.
23
	 *
24
	 * @return void
25
	 */
26 3
	public function visit($url)
27
	{
28 3
		if ( !$this->isStarted() ) {
29 3
			$this->start();
30 3
		}
31
32 3
		parent::visit($url);
33 3
	}
34
35
}
36