diff --git a/tests/apiTest.php b/tests/apiTest.php index 5a5a7aa2..ab441fec 100644 --- a/tests/apiTest.php +++ b/tests/apiTest.php @@ -761,7 +761,7 @@ public function provider() } protected function getCommandLineParameter($param, $default){ - foreach($argv as $arg){ + foreach($_SERVER['argv'] as $arg){ $args = explode('=', $arg); if(2 === count($args)){ if(("--" . $param) === $args[0]){