New command and test

This commit is contained in:
James Cole
2019-06-21 19:07:11 +02:00
parent f3123802a9
commit fb1af395f9
3 changed files with 209 additions and 0 deletions

View File

@@ -49,6 +49,7 @@ class UpgradeSkeleton extends Command
*/
public function handle(): int
{
$start = microtime(true);
if ($this->isExecuted() && true !== $this->option('force')) {
$this->warn('This command has already been executed.');
@@ -57,6 +58,10 @@ class UpgradeSkeleton extends Command
$this->warn('Congrats, you found the skeleton command. Boo!');
//$this->markAsExecuted();
$end = round(microtime(true) - $start, 2);
$this->info(sprintf('in %s seconds.', $end));
return 0;
}