1 | <?php |
||
11 | class TestCommand extends Command |
||
12 | { |
||
13 | /** |
||
14 | * The name and signature of the console command. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'test {--without-tty : Disable output to TTY}'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Run the application tests'; |
||
26 | |||
27 | /** |
||
28 | * The arguments to be used while calling phpunit. |
||
29 | * |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $arguments = [ |
||
33 | '--printer', |
||
34 | 'NunoMaduro\Collision\Adapters\Phpunit\Printer', |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Execute the console command. |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function handle() |
||
69 | |||
70 | /** |
||
71 | * Get the PHP binary to execute. |
||
72 | * |
||
73 | * @return array |
||
74 | */ |
||
75 | protected function binary() |
||
83 | |||
84 | /** |
||
85 | * Get the array of arguments for running PHPUnit. |
||
86 | * |
||
87 | * @param array $options |
||
88 | * |
||
89 | * @return array |
||
90 | */ |
||
91 | protected function phpunitArguments($options) |
||
103 | } |
||
104 |