Completed
Pull Request — master (#100)
by Michał
01:35
created

SessionProxy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

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
	public function visit($url)
27
	{
28
		if ( !$this->isStarted() ) {
29
			$this->start();
30
		}
31
32
		parent::visit($url);
33
	}
34
35
}
36