diff --git a/src/LinusShops/Prophet/TestRunner.php b/src/LinusShops/Prophet/TestRunner.php index e75feb4..c3592d9 100644 --- a/src/LinusShops/Prophet/TestRunner.php +++ b/src/LinusShops/Prophet/TestRunner.php @@ -14,17 +14,19 @@ class TestRunner /** * Call the same functions used by the CLI PHPUnit * to engage the tests - * @param string $phpunitXml path to the phpunit.xml to use + * @param string $modulePath path to the phpunit.xml to use * @return int * 0: Tests successful * 1: Tests failed * 2: Failed with exception */ - public function run($phpunitXml) + public function run($modulePath) { $runner = new \PHPUnit_TextUI_Command(); $options = array( - '--configuration' => $phpunitXml + 'phpunit', + '--configuration', + $modulePath.'/phpunit.xml' ); return $runner->run($options, false);