Skip to content

Commit 3c0746d

Browse files
Add an option to install PHPUnit (#256)
* Add an option to install PHPUnit * Fix style
1 parent 407c037 commit 3c0746d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NewCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ protected function configure()
3737
->addOption('stack', null, InputOption::VALUE_OPTIONAL, 'The Breeze / Jetstream stack that should be installed')
3838
->addOption('teams', null, InputOption::VALUE_NONE, 'Indicates whether Jetstream should be scaffolded with team support')
3939
->addOption('pest', null, InputOption::VALUE_NONE, 'Installs the Pest testing framework')
40+
->addOption('phpunit', null, InputOption::VALUE_NONE, 'Installs the PHPUnit testing framework')
4041
->addOption('prompt-breeze', null, InputOption::VALUE_NONE, 'Issues a prompt to determine if Breeze should be installed')
4142
->addOption('prompt-jetstream', null, InputOption::VALUE_NONE, 'Issues a prompt to determine if Jetstream should be installed')
4243
->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces install even if the directory already exists');
@@ -329,6 +330,10 @@ protected function testingFramework(InputInterface $input, OutputInterface $outp
329330
return 'pest';
330331
}
331332

333+
if ($input->getOption('phpunit')) {
334+
return 'phpunit';
335+
}
336+
332337
$testingFrameworks = [
333338
'pest',
334339
'phpunit',

0 commit comments

Comments
 (0)