Exemple #1
0
 /**
  * Returns the only instance of the class
  *
  * @return MageUnit_Autoload
  */
 public static function getInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new MageUnit_Autoload();
     }
     return self::$_instance;
 }
Exemple #2
0
<?php

if (!getenv('MAGE')) {
    throw new Exception('Path to Mage.php has not been configured');
}
require getenv('MAGE');
require 'MageUnit' . DIRECTORY_SEPARATOR . 'Autoload.php';
MageUnit_Autoload::enable();
Mage::app();
Mage_Core_Model_Resource_Setup::applyAllUpdates();