Skip to content

Commit

Permalink
added a simple check of the PHP_Unit version so it can work with pre-…
Browse files Browse the repository at this point in the history
… 3.5 versions of php_unit
  • Loading branch information
jazahn committed Jun 20, 2012
1 parent 643eb3c commit 1604aa2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion framework/test/CTestCase.php
Expand Up @@ -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.
Expand Down

0 comments on commit 1604aa2

Please sign in to comment.