aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-05 18:45:05 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-02-05 18:45:05 +0000
commitd385ce8641035b92481ccfd1bc56fdf45bd3e1bc (patch)
treef772fb93d33dbbbe45edad5eefdb299136a45e4d
parent983e4666c4a30df3c1b25c999000ad9c9ab5f82e (diff)
downloadsemanticscuttle-d385ce8641035b92481ccfd1bc56fdf45bd3e1bc.tar.gz
semanticscuttle-d385ce8641035b92481ccfd1bc56fdf45bd3e1bc.tar.bz2
do not use service overrides when running unit tests
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@631 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--src/SemanticScuttle/header.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php
index 4ad869d..b02712c 100644
--- a/src/SemanticScuttle/header.php
+++ b/src/SemanticScuttle/header.php
@@ -57,7 +57,9 @@ require_once 'SemanticScuttle/DbService.php';
require_once 'SemanticScuttle/Service/Factory.php';
require_once 'SemanticScuttle/functions.php';
-if (count($GLOBALS['serviceoverrides']) > 0) {
+if (count($GLOBALS['serviceoverrides']) > 0
+ && !defined('UNIT_TEST_MODE')
+) {
SemanticScuttle_Service_Factory::$serviceoverrides
= $GLOBALS['serviceoverrides'];
}