diff --git a/src/Engineer/Tests/Test.php b/src/Engineer/Tests/Test.php index a738e69..54f6815 100644 --- a/src/Engineer/Tests/Test.php +++ b/src/Engineer/Tests/Test.php @@ -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); } } \ No newline at end of file