Passed
Push — stable ( 1cb707...85bde5 )
by Nuno
01:47
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 Method

Rating   Name   Duplication   Size   Complexity  
A fakeFail() 0 5 2
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
}