diff --git a/src/Adapters/Laravel/Commands/TestCommand.php b/src/Adapters/Laravel/Commands/TestCommand.php index 0f80b7e..b21786b 100644 --- a/src/Adapters/Laravel/Commands/TestCommand.php +++ b/src/Adapters/Laravel/Commands/TestCommand.php @@ -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); }