-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap-tests.php
More file actions
executable file
·46 lines (46 loc) · 1.83 KB
/
bootstrap-tests.php
File metadata and controls
executable file
·46 lines (46 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Vehicle Fits
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Vehicle Fits to newer
* versions in the future. If you wish to customize Vehicle Fits for your
* needs please refer to http://www.vehiclefits.com for more information.
*
* @copyright Copyright (c) 2013 Vehicle Fits, llc
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
error_reporting(E_ALL | E_STRICT | E_NOTICE);
ini_set('display_errors', 1);
/**
* The paths are controlled by app/code/local/Elite/phpunit.xml.dist
* using the <php><env /></php> section. To make changes, make a copy
* of phpunit.xml.dist to phpunit.xml
*/
define('MAGE_PATH', realpath(getenv('PHP_MAGE_PATH')));
define('TEMP_PATH', getenv('PHP_TEMP_PATH'));
# database details for test server
define('VAF_DB_USERNAME', getenv('PHP_VAF_DB_USERNAME'));
define('VAF_DB_PASSWORD', getenv('PHP_VAF_DB_PASSWORD'));
define('VAF_DB_NAME', getenv('PHP_VAF_DB_NAME'));
define('ELITE_CONFIG_DEFAULT', dirname(__FILE__) . '/config.default.ini');
define('ELITE_CONFIG', dirname(__FILE__) . '/config.ini');
define('ELITE_PATH', getenv('ELITE_PATH'));
# used to make "test only code" run (Google "test code in production")
define('ELITE_TESTING', 1);
set_include_path(
dirname(__FILE__) . '/library' // VF Core library
. PATH_SEPARATOR . get_include_path()
);
$_SESSION = array();