TestWebDriver   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A session() 0 4 1
1
<?php
2
/**
3
 * Webino (http://webino.sk/)
4
 *
5
 * @link        https://github.com/webino/WebinoDev/ for the canonical source repository
6
 * @copyright   Copyright (c) 2014-2017 Webino, s. r. o. (http://webino.sk/)
7
 * @license     BSD-3-Clause
8
 */
9
10
namespace WebinoDev\Test\Selenium\WebDriver;
11
12
/**
13
 * For mocking PHPWebDriver_WebDriver
14
 */
15
class TestWebDriver
16
{
17
    /**
18
     * Session mock
19
     *
20
     * @var \PHPWebDriver_WebDriverSession|SessionInterface|\PHPUnit_Framework_MockObject_MockObject
21
     */
22
    public static $session;
23
24
    /**
25
     * Return session mock for test purposes
26
     *
27
     * @return \PHPWebDriver_WebDriverSession|SessionInterface|\PHPUnit_Framework_MockObject_MockObject
28
     */
29
    public function session()
30
    {
31
        return $this::$session;
32
    }
33
}
34