Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-02-12 05:25:50 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-02-12 05:25:50 +0400
commitf39d3ccc68fb864b2586a0b9c6a20aa27be137e0 (patch)
treec4e2c571cacb6557578cd85c725d30a424ce3a2b /tests/PHPUnit/proxy
parente7b54d9a6a798c47e60de08ffad76a7f0d5c78d0 (diff)
refs #4610 fix tests
Diffstat (limited to 'tests/PHPUnit/proxy')
-rw-r--r--tests/PHPUnit/proxy/includes.php13
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';