After upgrading phpunit to version 3.6.3 assertRedirectTo () does not work

Before updating phpunit, everything was fine, the assertRedirectTo() function worked as it should, but after the update, it shows this error:

The Zend_Test_PHPUnit_Constraint_Redirect::evaluate() declaration must be compatible with the PHPUnit_Framework_Constraint::evaluate()

Can anyone explain what exactly happened?

+4
source share
1 answer

Yes, I ran into this problem two days ago. But unfortunately, Zend Framework 1.x is not going to support PHPunit 3.6 or higher :-(

So, the best thing is that you return to 3.5, which supports the latest version of Zend Framework.

Check this:

http://zendframework.com/issues/browse/ZF-11871

Here you can read what they will do ZF2 with 3.6 support: http://zend-framework-community.634137.n4.nabble.com/Running-the-zend-unit-tests-with-the-phpunit-3- 6-PHP-CodeCoverage-Filter-getInstance-problem-td4023996.html

+9
source

Source: https://habr.com/ru/post/1380734/


All Articles