1
0
mirror of synced 2024-11-27 07:26:06 +03:00
magento-module/tests/unit/autoload.php

12 lines
373 B
PHP
Raw Normal View History

2017-02-03 11:05:00 +03:00
<?php
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR
. dirname(__FILE__) . '/../../app' . PATH_SEPARATOR . dirname(__FILE__));
//Set custom memory limit
ini_set('memory_limit', '512M');
//Include Magento libraries
require_once 'Mage.php';
//Start the Magento application
Mage::app('default');
//Avoid issues "Headers already send"
session_start();