Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 Clevenger authored June 20, 2012

Showing 1 changed file with 8 additions and 1 deletion. Show diff stats Hide diff stats

  1. 9  framework/test/CTestCase.php
9  framework/test/CTestCase.php
@@ -9,7 +9,14 @@
9 9
  */
10 10
 
11 11
 require_once('PHPUnit/Runner/Version.php');
12  
-require_once('PHPUnit/Autoload.php');
  12
+// check version of phpunit
  13
+if(PHPUnit_Runner_Version::id() == '3.4'){
  14
+	require_once('PHPUnit/Framework.php');
  15
+} else {
  16
+	// this is what it normally is
  17
+	require_once('PHPUnit/Autoload.php');
  18
+}
  19
+
13 20
 
14 21
 /**
15 22
  * CTestCase is the base class for all test case classes.

0 notes on commit 1604aa2

Please sign in to comment.
Something went wrong with that request. Please try again.