将phpunit更新到版本3

将phpunit更新到版本3

本文介绍了将phpunit更新到版本3.6.3后,assertRedirectTo()失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更新phpunit之前,一切正常,函数assertRedirectTo()可以正常工作,但是更新后显示此错误:

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

有人能解释到底发生了什么吗?

Can anybody explain what exactly happened?

推荐答案

是的,两天前我也遇到了这个问题.但不幸的是,在Zend Framework 1.x上将不支持PHPunit 3.6或更高版本:-(

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

所以最好的是,您返回到Zend Framework支持的最新版本3.5.

So the best thing is that you go back to 3.5 which is the latest version Zend Framework supports.

检查此:

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

在这里您可以阅读它们将使ZF2更好地支持3.6: 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

Here you can read they will proberly make ZF2 supporting 3.6: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

这篇关于将phpunit更新到版本3.6.3后,assertRedirectTo()失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 12:39