diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-12 05:25:50 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-02-12 05:25:50 +0400 |
commit | f39d3ccc68fb864b2586a0b9c6a20aa27be137e0 (patch) | |
tree | c4e2c571cacb6557578cd85c725d30a424ce3a2b /tests/PHPUnit/proxy | |
parent | e7b54d9a6a798c47e60de08ffad76a7f0d5c78d0 (diff) |
refs #4610 fix tests
Diffstat (limited to 'tests/PHPUnit/proxy')
-rw-r--r-- | tests/PHPUnit/proxy/includes.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/PHPUnit/proxy/includes.php b/tests/PHPUnit/proxy/includes.php index 99f41cf1dc..dfe8796174 100644 --- a/tests/PHPUnit/proxy/includes.php +++ b/tests/PHPUnit/proxy/includes.php @@ -2,9 +2,16 @@ // Good old test proxy endpoints have some commons -define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__)) . '/../../../'); -define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH); -define('PIWIK_PRINT_ERROR_BACKTRACE', true); +if (!defined('PIWIK_INCLUDE_PATH')) { + define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__)) . '/../../../'); +} +if (!defined('PIWIK_USER_PATH')) { + define('PIWIK_USER_PATH', PIWIK_INCLUDE_PATH); +} + +if (!defined('PIWIK_PRINT_ERROR_BACKTRACE')) { + define('PIWIK_PRINT_ERROR_BACKTRACE', true); +} require_once PIWIK_INCLUDE_PATH . '/core/Loader.php'; require_once PIWIK_INCLUDE_PATH . '/core/EventDispatcher.php'; |