Passed
Push — master ( c32af1...923c61 )
by ANTHONIUS
04:29
created

ReRunner::isSupported()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the doyo/code-coverage project.
5
 *
6
 * (c) Anthonius Munthi <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Fake;
15
16
use PhpSpec\Process\ReRunner as BaseReRunner;
17
18
class ReRunner implements BaseReRunner
19
{
20
    private $hasBeenReRun = false;
21
22
    /**
23
     * @return bool
24
     */
25
    public function isSupported()
26
    {
27
        return true;
28
    }
29
30
    public function reRunSuite()
31
    {
32
        $this->hasBeenReRun = true;
33
    }
34
35
    public function hasBeenReRun()
36
    {
37
        return $this->hasBeenReRun;
38
    }
39
}
40