Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Fix error when run outside shell directory #264

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion shell/ecomdev-phpunit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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;
}
Expand Down