-
Notifications
You must be signed in to change notification settings - Fork 5
/
phpunit.php
31 lines (28 loc) · 1.3 KB
/
phpunit.php
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
<?php
if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); }
/**
*---------------------------------------------------------------
* Autoloader / Compser
*---------------------------------------------------------------
*
* We need to access our dependencies & autloader..
*/
require __DIR__ .
DS .
'vendor' .
DS .
'autoload.php';
// main paths
define('VISU_PATH_ROOT', __DIR__ . DS . 'tests_env');
define('VISU_PATH_CACHE', VISU_PATH_ROOT . DS . 'var' . DS . 'cache');
define('VISU_PATH_STORE', VISU_PATH_ROOT . DS . 'var' . DS . 'store');
define('VISU_PATH_APPCONFIG', VISU_PATH_ROOT . DS . 'app');
// some general paths
define('PATH_TEST_RESOURCES', __DIR__ . DS . 'tests' . DS . 'resources');
define('VISU_PATH_RESOURCES', PATH_TEST_RESOURCES);
define('PATH_TEST_RES_SHADER', PATH_TEST_RESOURCES . DS . 'shaders');
// framework paths
define('VISU_PATH_FRAMEWORK_ROOT', __DIR__);
if (!defined('VISU_PATH_FRAMEWORK_RESOURCES')) define('VISU_PATH_FRAMEWORK_RESOURCES', VISU_PATH_FRAMEWORK_ROOT . DS . 'resources');
if (!defined('VISU_PATH_FRAMEWORK_RESOURCES_SHADER')) define('VISU_PATH_FRAMEWORK_RESOURCES_SHADER', VISU_PATH_FRAMEWORK_RESOURCES . DS . 'shader');
if (!defined('VISU_PATH_FRAMEWORK_RESOURCES_FONT')) define('VISU_PATH_FRAMEWORK_RESOURCES_FONT', VISU_PATH_FRAMEWORK_RESOURCES . DS . 'fonts');