PhpUnitResponseStub::create()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
namespace PhpGitHooks\Module\Configuration\Tests\Stub;
4
5
use PhpGitHooks\Module\Configuration\Contract\Response\PhpUnitResponse;
6
7
class PhpUnitResponseStub
8
{
9
    const OPTIONS = '--color';
10
11
    /**
12
     * @param bool        $phpunit
13
     * @param bool        $randomMode
14
     * @param string|null $options
15
     *
16
     * @return PhpUnitResponse
17
     */
18
    public static function create($phpunit, $randomMode, $options)
19
    {
20
        return new PhpUnitResponse($phpunit, $randomMode, $options);
21
    }
22
23
    /**
24
     * @return PhpUnitResponse
25
     */
26
    public static function createEnabled()
27
    {
28
        return self::create(true, true, self::OPTIONS);
29
    }
30
}
31