diff --git a/shell/ecomdev-phpunit.php b/shell/ecomdev-phpunit.php index 94f0b9d8..dcc62378 100644 --- a/shell/ecomdev-phpunit.php +++ b/shell/ecomdev-phpunit.php @@ -17,7 +17,7 @@ */ -require_once 'abstract.php'; +require_once realpath(dirname($_SERVER["SCRIPT_FILENAME"])) . DIRECTORY_SEPARATOR . 'abstract.php'; // Only this workaround fixes Magento core issue in 1.8 :( $abstractShell = new ReflectionClass('Mage_Shell_Abstract'); @@ -177,6 +177,8 @@ public function run() echo "EcomDev_PHPUnit module version is {$version} \n"; break; default: + /* Force show help */ + $this->_args['h'] = true; $this->_showHelp(); break; }