【问题标题】:After updating phpunit to version 3.6.3, assertRedirectTo() fails将 phpunit 更新到 3.6.3 版本后,assertRedirectTo() 失败
【发布时间】:2011-11-12 07:10:51
【问题描述】:

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

Zend_Test_PHPUnit_Constraint_Redirect::evaluate()的声明应该与PHPUnit_Framework_Constraint::evaluate()的声明兼容

谁能解释到底发生了什么?

【问题讨论】:

    标签: zend-framework phpunit


    【解决方案1】:

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

    所以最好的办法是回到 3.5,这是 Zend Framework 支持的最新版本。

    检查一下:

    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

    【讨论】:

      猜你喜欢
      • 2019-09-13
      • 1970-01-01
      • 2019-07-02
      • 1970-01-01
      • 1970-01-01
      • 2014-09-05
      • 2017-04-02
      • 1970-01-01
      • 2018-10-10
      相关资源
      最近更新 更多