1 | <?php |
||
8 | class TestCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'test {--without-tty : Disable output to TTY}'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Run the application tests'; |
||
23 | |||
24 | /** |
||
25 | * The arguments to be used while calling phpunit. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $arguments = [ |
||
30 | '--printer', |
||
31 | 'NunoMaduro\Collision\Adapters\Phpunit\Printer', |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * Create a new command instance. |
||
36 | * |
||
37 | * @return void |
||
|
|||
38 | */ |
||
39 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * Execute the console command. |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | public function handle() |
||
61 | } |
||
62 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.