Skip to content

Commit

Permalink
Merge pull request #306 from oceanapplications/patch-1
Browse files Browse the repository at this point in the history
Prevent appending configuration if configuration flag is set
  • Loading branch information
nunomaduro authored Jan 23, 2025
2 parents 695b8b9 + ee977f0 commit 82cb937
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Adapters/Laravel/Commands/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ protected function phpunitArguments($options)
&& ! Str::startsWith($option, '--min');
}));

if (!empty(preg_grep('/^--configuration=|-c/', $options))) {
return array_merge($this->commonArguments(), $options);
}

return array_merge($this->commonArguments(), ['--configuration='.$this->getConfigurationFile()], $options);
}

Expand Down

0 comments on commit 82cb937

Please sign in to comment.