Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 14, 2023
1 parent 2424b6c commit 8aa6735
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Console/DuskCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,14 @@ protected function phpunitArguments($options)
$file = base_path('phpunit.dusk.xml.dist');
}

if ($this->option('ansi')) {
$options[] = '--colors="always"';
}
if (version_compare(Version::id(), '10.0', '>=')) {
if ($this->option('ansi')) {
$options[] = '--colors=always';
}

if ($this->option('no-ansi')) {
$options[] = '--colors="never"';
if ($this->option('no-ansi')) {
$options[] = '--colors=never';
}
}

return array_merge(['-c', $file], $options);
Expand Down

0 comments on commit 8aa6735

Please sign in to comment.