Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| HydeValidateCommand | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| handle | |
100.00% |
4 / 4 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Hyde\Framework\Commands; |
| 4 | |
| 5 | use Hyde\Framework\Hyde; |
| 6 | use LaravelZero\Framework\Commands\Command; |
| 7 | |
| 8 | /** |
| 9 | * Runs the validation tests. |
| 10 | */ |
| 11 | class HydeValidateCommand extends Command |
| 12 | { |
| 13 | /** |
| 14 | * The signature of the command. |
| 15 | * |
| 16 | * @var string |
| 17 | */ |
| 18 | protected $signature = 'validate'; |
| 19 | |
| 20 | /** |
| 21 | * The description of the command. |
| 22 | * |
| 23 | * @var string |
| 24 | */ |
| 25 | protected $description = 'Run a series of tests to validate your setup and help you optimize your site.'; |
| 26 | |
| 27 | /** |
| 28 | * Execute the console command. |
| 29 | * |
| 30 | * @return int |
| 31 | */ |
| 32 | public function handle(): int |
| 33 | { |
| 34 | $this->info('Running validation tests!'); |
| 35 | |
| 36 | $this->line(shell_exec(Hyde::path('vendor/bin/pest').' --group=validators')); |
| 37 | |
| 38 | $this->info('All done!'); |
| 39 | |
| 40 | return 0; |
| 41 | } |
| 42 | } |