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

FakeFailTrait::fakeFail()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 2
nc 2
nop 1
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