From: cweiske Date: Fri, 5 Feb 2010 18:45:05 +0000 (+0000) Subject: do not use service overrides when running unit tests X-Git-Tag: v0.97~80 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d385ce8641035b92481ccfd1bc56fdf45bd3e1bc;p=semanticscuttle.git 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 --- 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']; }