Failed Conditions
Pull Request — master (#75)
by Malte
03:57
created

SessionProxy::visit()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 6
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