Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a simple check of the PHP_Unit version so it can work with pre-…

… 3.5 versions of php_unit
  • Loading branch information...
commit 1604aa2cfce49de467b1f4b4b4be3c1055b5471c 1 parent 643eb3c
@jazahn authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 framework/test/CTestCase.php
View
9 framework/test/CTestCase.php
@@ -9,7 +9,14 @@
*/
require_once('PHPUnit/Runner/Version.php');
-require_once('PHPUnit/Autoload.php');
+// check version of phpunit
+if(PHPUnit_Runner_Version::id() == '3.4'){
+ require_once('PHPUnit/Framework.php');
+} else {
+ // this is what it normally is
+ require_once('PHPUnit/Autoload.php');
+}
+
/**
* CTestCase is the base class for all test case classes.
Please sign in to comment.
Something went wrong with that request. Please try again.