diff --git a/src/LinusShops/Prophet/Commands/Scry.php b/src/LinusShops/Prophet/Commands/Scry.php index 9d04420..49bef7e 100644 --- a/src/LinusShops/Prophet/Commands/Scry.php +++ b/src/LinusShops/Prophet/Commands/Scry.php @@ -9,6 +9,7 @@ namespace LinusShops\Prophet\Commands; +use LinusShops\Prophet\Magento; use LinusShops\Prophet\ProphetCommand; use LinusShops\Prophet\TestRunner; use Symfony\Component\Console\Input\InputInterface; @@ -37,6 +38,10 @@ protected function execute(InputInterface $input, OutputInterface $output) } } + $output->writeln('Loading Magento classes'); + + Magento::bootstrap(); + foreach ($this->modules as $module) { $output->writeln('Starting tests for ['.$module['name'].']'); diff --git a/src/LinusShops/Prophet/Magento.php b/src/LinusShops/Prophet/Magento.php index 9c73d63..d97d872 100644 --- a/src/LinusShops/Prophet/Magento.php +++ b/src/LinusShops/Prophet/Magento.php @@ -35,7 +35,7 @@ public static function bootstrap() require_once($file); } - Varien_Autoload::register(); + \Varien_Autoload::register(); $mageFilename = 'app/Mage.php'; @@ -47,7 +47,7 @@ public static function bootstrap() require_once $mageFilename; - Mage::init(); + \Mage::init(); self::$loaded = true; }