diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index <HASH>..<HASH> 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -8,8 +8,14 @@ $_SERVER['SCRIPT_FILENAME']=__FILE__;
 
 require_once(dirname(__FILE__).'/../framework/yii.php');
 require_once(dirname(__FILE__).'/TestApplication.php');
-require_once('PHPUnit/Framework/TestCase.php');
-
+// Support PHPUnit <=3.7 and >=3.8
+if (file_exists('PHPUnit/Framework/TestCase.php')) 
+{
+        require_once('PHPUnit/Framework/TestCase.php'); // <= 3.7
+} else 
+{
+        require_once('src/Framework/TestCase.php'); // >= 3.8
+}
 // make sure non existing PHPUnit classes do not break with Yii autoloader
 Yii::$enableIncludePath = false;
 Yii::setPathOfAlias('tests', dirname(__FILE__));
@@ -24,4 +30,4 @@ class CActiveRecordTestCase extends CTestCase
 {
 }
 
-new TestApplication();
\ No newline at end of file
+new TestApplication();
Support PHPUnit <I>+

The directory structure of PHPUnit changes a little bit starting with PHPUnit <I>. Let's support the old and the new.