Browse Source

Fix constant already defined error when running only Cache tests.

ADmad 11 years ago
parent
commit
10614f4ecf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tests/bootstrap.php

+ 3 - 1
tests/bootstrap.php

@@ -19,7 +19,9 @@ use Cake\Log\Log;
 
 
 require_once 'vendor/autoload.php';
 require_once 'vendor/autoload.php';
 
 
-define('DS', DIRECTORY_SEPARATOR);
+if (!defined('DS')) {
+	define('DS', DIRECTORY_SEPARATOR);
+}
 define('ROOT', dirname(__DIR__));
 define('ROOT', dirname(__DIR__));
 define('APP_DIR', 'TestApp');
 define('APP_DIR', 'TestApp');