From a2c4ed80e1cec3a0c33fb14fd8a886297df00a92 Mon Sep 17 00:00:00 2001 From: Michael Deck Date: Wed, 15 Feb 2023 10:32:41 -0500 Subject: [PATCH 1/2] Add an option to install PHPUnit --- src/NewCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NewCommand.php b/src/NewCommand.php index c7b8fc24..6a53d565 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -37,6 +37,7 @@ protected function configure() ->addOption('stack', null, InputOption::VALUE_OPTIONAL, 'The Breeze / Jetstream stack that should be installed') ->addOption('teams', null, InputOption::VALUE_NONE, 'Indicates whether Jetstream should be scaffolded with team support') ->addOption('pest', null, InputOption::VALUE_NONE, 'Installs the Pest testing framework') + ->addOption('phpunit', null, InputOption::VALUE_NONE, 'Installs the PHPUnit testing framework') ->addOption('prompt-breeze', null, InputOption::VALUE_NONE, 'Issues a prompt to determine if Breeze should be installed') ->addOption('prompt-jetstream', null, InputOption::VALUE_NONE, 'Issues a prompt to determine if Jetstream should be installed') ->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces install even if the directory already exists'); @@ -328,6 +329,10 @@ protected function testingFramework(InputInterface $input, OutputInterface $outp if ($input->getOption('pest')) { return 'pest'; } + + if ($input->getOption('phpunit')) { + return 'phpunit'; + } $testingFrameworks = [ 'pest', From 633e534ebc3c019826119965113887cf1787d4e1 Mon Sep 17 00:00:00 2001 From: Michael Deck Date: Wed, 15 Feb 2023 10:53:11 -0500 Subject: [PATCH 2/2] Fix style --- src/NewCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 6a53d565..4021bb1e 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -329,7 +329,7 @@ protected function testingFramework(InputInterface $input, OutputInterface $outp if ($input->getOption('pest')) { return 'pest'; } - + if ($input->getOption('phpunit')) { return 'phpunit'; }