Completed
Push — master ( 0861ee...516bc9 )
by Raúl
12s
created

PmtWebDriver::wait()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace DigitalOrigin\Pmt\Test;
4
5
use Facebook\WebDriver\Remote\RemoteWebDriver;
6
use Facebook\WebDriver\WebDriverWait;
7
8
/**
9
 * Class PmtWebDriver
10
 *
11
 * @package Test
12
 */
13
class PmtWebDriver extends RemoteWebDriver
14
{
15
    /**
16
     * Override method to increase the default timeouts
17
     *
18
     * @param int $timeout_in_second
19
     * @param int $interval_in_millisecond
20
     *
21
     * @return WebDriverWait
22
     */
23
    public function wait($timeout_in_second = 120, $interval_in_millisecond = 250)
24
    {
25
        return new WebDriverWait(
26
            $this,
27
            $timeout_in_second,
28
            $interval_in_millisecond
29
        );
30
    }
31
}
32