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

ReRunner   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 20
rs 10
c 0
b 0
f 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