Skip to content

Commit

Permalink
Adding compatability fix for 3.4 fixes #3547
Browse files Browse the repository at this point in the history
  • Loading branch information
BRMatt committed Jan 7, 2011
1 parent 078ee86 commit 9d3b086
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/kohana/unittest/database/testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ public function setUp()
{
if(self::$_assert_type_compatability === NULL)
{
if( ! class_exists('PHPUnit_Runner_Version'))
{
require_once 'PHPUnit/Runner/Version.php';
}

self::$_assert_type_compatability = version_compare(PHPUnit_Runner_Version::id(), '3.5.0', '<=');
}

Expand Down
5 changes: 5 additions & 0 deletions classes/kohana/unittest/testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public function setUp()
{
if(self::$_assert_type_compatability === NULL)
{
if( ! class_exists('PHPUnit_Runner_Version'))
{
require_once 'PHPUnit/Runner/Version.php';
}

self::$_assert_type_compatability = version_compare(PHPUnit_Runner_Version::id(), '3.5.0', '<=');
}

Expand Down

0 comments on commit 9d3b086

Please sign in to comment.