1 | <?php |
||
11 | class MageApp |
||
12 | { |
||
13 | /** |
||
14 | * Loads Magento app in adapters |
||
15 | * |
||
16 | * Solves PHP Fatal error such as: |
||
17 | * |
||
18 | * Call to a member function getModelInstance() on a non-object in /vagrant/public/app/Mage.php on line 463 |
||
19 | * when used in testing frameworks, e.g. PHPSpec |
||
20 | * |
||
21 | * @return \Mage_Core_Model_App |
||
22 | */ |
||
23 | public static function get() |
||
27 | |||
28 | /** |
||
29 | * Initiate Mage::app() in Adapters |
||
30 | */ |
||
31 | public static function init() |
||
35 | } |
||
36 |