zendframework/zf1 — pull request #376 by mhujer (2014-06-07 05:05:07+00:00)
Title: Fixed compatibility with PHPUnit 4.1

This fixes compatibility with PHPUnit 4.1 as the Constraint interface was changed in https://github.com/sebastianbergmann/phpunit/commit/f0322b6978bc2b6fd9a17f499950a4b023ef3db4#diff-16

```
Declaration of Zend_Test_PHPUnit_Constraint_Redirect::fail() should be compatible with
PHPUnit_Framework_Constraint::fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL)

Declaration of Zend_Test_PHPUnit_Constraint_ResponseHeader::fail() should be compatible with
PHPUnit_Framework_Constraint::fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL)

Declaration of Zend_Test_PHPUnit_Constraint_DomQuery::fail() should be compatible with
PHPUnit_Framework_Constraint::fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL)
```

The compatibility with previous and new PHPUnit versions is accomplished through conditional include of constraint with proper interface. (`DomQuery41.php`, `Redirect41.php` and `ResponseHeader41.php` are just copies of respective `*37.php` files with `fail()` method interface changed)