Passed
Branch stable (668427)
by Nuno
04:13 queued 01:26
created

FakeFailTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Tests\Feature;
4
5
trait FakeFailTrait
6
{
7
    public function fakeFail($withDetails = false)
8
    {
9
        $args = $withDetails ? '-v' : '';
10
11
        return shell_exec('cd '.__DIR__." && php ./FakeProgram/Binary.php $args");
12
    }
13
}
14