From f576ad2bcb6c420d78338744f6d283d7ca909024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dufraisse?= Date: Sun, 19 Mar 2023 13:21:58 +0100 Subject: [PATCH] fix(phpunit): args and autoload --- src/commands/Command.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/Command.php b/src/commands/Command.php index b1b5b18..5b0fd9f 100644 --- a/src/commands/Command.php +++ b/src/commands/Command.php @@ -77,9 +77,11 @@ use Symfony\Component\Console\Output\OutputInterface; if (is_dir($path)){ $empty = false; $args = [ + '--bootstrap', + 'vendor/autoload.php', $path ]; - $code = $this->runPhpUnitIfAvailable($input->getArgument('args'),$output); + $code = $this->runPhpUnitIfAvailable($args,$output); if ($code != Command::SUCCESS){ return $code; }