From d385ce8641035b92481ccfd1bc56fdf45bd3e1bc Mon Sep 17 00:00:00 2001 From: cweiske Date: Fri, 5 Feb 2010 18:45:05 +0000 Subject: 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 --- src/SemanticScuttle/header.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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']; } -- cgit v1.2.3