]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
tell people that debugmode and mysql4 will break some tests
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 7 Feb 2010 16:50:17 +0000 (16:50 +0000)
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>
Sun, 7 Feb 2010 16:50:17 +0000 (16:50 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@638 b3834d28-1941-0410-a4f8-b48e95affb8f

tests/prepare.php

index 5cdcfcc863f02f4e7a0f84bae7c020dddd5bd1dd..835810e6ee54d132ccfaaf6221f0936165b478d8 100644 (file)
@@ -21,4 +21,12 @@ define('UNIT_TEST_MODE', true);
 
 require_once dirname(__FILE__) . '/../src/SemanticScuttle/header.php';
 require_once dirname(__FILE__) . '/TestBase.php';
+
+if ($GLOBALS['debugMode'] == true
+    && $GLOBALS['dbtype'] == 'mysql4'
+) {
+    echo "\n"
+        . '!!! The combination of debugMode and dbtype==mysql4'
+        . ' will wreck some tests' . "\n\n";
+}
 ?>
\ No newline at end of file