Skip to content

Commit

Permalink
Merge pull request #7 from humanmade/fix-phpunit-command
Browse files Browse the repository at this point in the history
Pass option pieces separately
  • Loading branch information
roborourke authored Jun 12, 2020
2 parents c675474 + 9ded730 commit 38b1497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/command/class-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ protected function phpunit( InputInterface $input, OutputInterface $output ) {
// Check for passed config option.
$input_options = implode( ' ', $input->getArgument( 'options' ) );
if ( ! preg_match( '/(-c|--configuration)\s+/', $input_options ) ) {
$options[] = '-c vendor/phpunit.xml';
$options[] = '-c';
$options[] = 'vendor/phpunit.xml';
}

return $this->run_command( $input, $output, 'vendor/bin/phpunit', $options );
Expand Down

0 comments on commit 38b1497

Please sign in to comment.