Skip to content

Commit

Permalink
bug fix in src/Engineer/Tests/Test.php
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfaramarzi committed Sep 1, 2021
1 parent 949888a commit 1f172b7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Engineer/Tests/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@

class Test
{
public function run()
public function run(array $arguments): void
{
echo shell_exec('./vendor/bin/phpunit --color=always');
unset($arguments[0]);
unset($arguments[1]);
if (!empty($arguments)){
$arguments = implode(' ' , $arguments);
$exec = "./vendor/bin/phpunit $arguments --color=always";
}else{
$exec = "./vendor/bin/phpunit --color=always";
}

echo shell_exec($exec);
}
}

0 comments on commit 1f172b7

Please sign in to comment.