Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #376 from mhujer/phpunit41
Browse files Browse the repository at this point in the history
Fixed compatibility with PHPUnit 4.1
  • Loading branch information
akrabat committed Jun 12, 2014
2 parents 1947510 + 01a19d9 commit fa015ec
Show file tree
Hide file tree
Showing 6 changed files with 1,183 additions and 3 deletions.
4 changes: 3 additions & 1 deletion library/Zend/Test/PHPUnit/Constraint/DomQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
* @version $Id$
*/

if (version_compare(PHPUnit_Runner_Version::id(), '3.5', '>=')) {
if (version_compare(PHPUnit_Runner_Version::id(), '4.1', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'DomQuery41.php');
} elseif (version_compare(PHPUnit_Runner_Version::id(), '3.5', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'DomQuery37.php');
} else {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'DomQuery34.php');
Expand Down
Loading

0 comments on commit fa015ec

Please sign in to comment.