1. <i id='pOFuc'><tr id='pOFuc'><dt id='pOFuc'><q id='pOFuc'><span id='pOFuc'><b id='pOFuc'><form id='pOFuc'><ins id='pOFuc'></ins><ul id='pOFuc'></ul><sub id='pOFuc'></sub></form><legend id='pOFuc'></legend><bdo id='pOFuc'><pre id='pOFuc'><center id='pOFuc'></center></pre></bdo></b><th id='pOFuc'></th></span></q></dt></tr></i><div id='pOFuc'><tfoot id='pOFuc'></tfoot><dl id='pOFuc'><fieldset id='pOFuc'></fieldset></dl></div>

      <small id='pOFuc'></small><noframes id='pOFuc'>

        • <bdo id='pOFuc'></bdo><ul id='pOFuc'></ul>
        <legend id='pOFuc'><style id='pOFuc'><dir id='pOFuc'><q id='pOFuc'></q></dir></style></legend>

      1. <tfoot id='pOFuc'></tfoot>

        Zend_Test_PHPUnit_Constraint_DomQuery::evaluate() 的声明应该与 PHP

        Declaration of Zend_Test_PHPUnit_Constraint_DomQuery::evaluate() should be compatible with that of PHPUnit_Framework_Constraint::evaluate()(Zend_Test_PHPUnit_Constraint_DomQuery::evaluate() 的声明应该与 PHPUnit_Framework_Constraint::evaluat

          <i id='UFpof'><tr id='UFpof'><dt id='UFpof'><q id='UFpof'><span id='UFpof'><b id='UFpof'><form id='UFpof'><ins id='UFpof'></ins><ul id='UFpof'></ul><sub id='UFpof'></sub></form><legend id='UFpof'></legend><bdo id='UFpof'><pre id='UFpof'><center id='UFpof'></center></pre></bdo></b><th id='UFpof'></th></span></q></dt></tr></i><div id='UFpof'><tfoot id='UFpof'></tfoot><dl id='UFpof'><fieldset id='UFpof'></fieldset></dl></div>

        1. <legend id='UFpof'><style id='UFpof'><dir id='UFpof'><q id='UFpof'></q></dir></style></legend>

            <bdo id='UFpof'></bdo><ul id='UFpof'></ul>

            1. <small id='UFpof'></small><noframes id='UFpof'>

                • <tfoot id='UFpof'></tfoot>
                    <tbody id='UFpof'></tbody>
                • 本文介绍了Zend_Test_PHPUnit_Constraint_DomQuery::evaluate() 的声明应该与 PHPUnit_Framework_Constraint::evaluate() 的声明兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用 PHPUnit 3.6.4 对我的 Zend Framework 应用程序进行单元测试.当我在命令提示符中尝试此命令时,出现以下错误.

                  I am trying to unit test my Zend Framework application using PHPUnit 3.6.4. I get the following error when i try this command in my command prompt.

                  C:xampphtdocs	estsample	ests>phpunit --configuration phpunit.xml
                  PHPUnit 3.6.4 by Sebastian Bergmann.
                  
                  Configuration read from C:xampphtdocs	estsample	estsphpunit.xml
                  
                  ←[31;1mE←[0m←[31;1mE←[0m..
                  
                  Time: 0 seconds, Memory: 10.00Mb
                  
                  There were 2 errors:
                  
                  1) IndexControllerTest::testIndexWithMessageAction
                  Declaration of Zend_Test_PHPUnit_Constraint_DomQuery::evaluate() should be compatible         
                  with that of PHPUnit_Framework_Constraint::evaluate()
                  
                  C:xampphtdocshivelibraryendTestPHPUnitConstraintDomQuery.php:40
                  C:xampphtdocshivelibraryendTestPHPUnitControllerTestCase.php:512
                  C:xampphtdocs	estsample	estsapplicationcontrollersIndexControllerTest.php
                  :14
                  C:xamppphpPEARPHPUnitFrameworkTestCase.php:925
                  C:xamppphpPEARPHPUnitFrameworkTestCase.php:787
                  C:xamppphpPEARPHPUnitFrameworkTestResult.php:649
                  C:xamppphpPEARPHPUnitFrameworkTestCase.php:734
                  C:xamppphpPEARPHPUnitFrameworkTestSuite.php:772
                  C:xamppphpPEARPHPUnitFrameworkTestSuite.php:745
                  C:xamppphpPEARPHPUnitFrameworkTestSuite.php:705
                  C:xamppphpPEARPHPUnitTextUITestRunner.php:325
                  C:xamppphpPEARPHPUnitTextUICommand.php:187
                  C:xamppphpPEARPHPUnitTextUICommand.php:125
                  C:xamppphpphpunit:44
                  
                  2) IndexControllerTest::testIndexNoMessageAction
                  Declaration of Zend_Test_PHPUnit_Constraint_ResponseHeader::evaluate() should be
                   compatible with that of PHPUnit_Framework_Constraint::evaluate()
                  
                  C:xampphtdocshivelibraryendTestPHPUnitConstraintResponseHeader.php:400
                  
                  C:xampphtdocshivelibraryendTestPHPUnitControllerTestCase.php:769
                  C:xampphtdocshivelibraryendTestPHPUnitControllerTestCase.php:769
                  C:xampphtdocs	estsample	estsapplicationcontrollersIndexControllerTest.php
                  :22
                  C:xamppphpPEARPHPUnitFrameworkTestCase.php:925
                  C:xamppphpPEARPHPUnitFrameworkTestCase.php:787
                  C:xamppphpPEARPHPUnitFrameworkTestResult.php:649
                  C:xamppphpPEARPHPUnitFrameworkTestCase.php:734
                  C:xamppphpPEARPHPUnitFrameworkTestSuite.php:772
                  C:xamppphpPEARPHPUnitFrameworkTestSuite.php:745
                  C:xamppphpPEARPHPUnitFrameworkTestSuite.php:705
                  C:xamppphpPEARPHPUnitTextUITestRunner.php:325
                  C:xamppphpPEARPHPUnitTextUICommand.php:187
                  C:xamppphpPEARPHPUnitTextUICommand.php:125
                  C:xamppphpphpunit:44
                  
                  ←[37;41m←[2KFAILURES!
                  ←[0m←[37;41m←[2KTests: 4, Assertions: 10, Errors: 2.
                  ←[0m←[2K
                  Generating code coverage report, this may take a moment.
                  

                  为什么我会收到这个错误?我做错了什么?请帮帮我

                  Why am i getting this error? What is that I've done wrong? Please help me

                  推荐答案

                  Zend Framework 1 应用程序当前,可能在相当长一段时间内,只能使用 PHPUnit 3.5.x 正常运行.

                  Zend Framework 1 applications currently, and possibly for quite some time, only function properly using PHPUnit 3.5.x.

                  请参见将phpunit 3.6降级到3.5.15 关于如何降级到 3.5.

                  Please see downgrade phpunit 3.6 to 3.5.15 on how to downgrade to 3.5.

                  Zend Framework 2 将再次支持当前版本的 PHPUnit.

                  Zend Framework 2 will support the current version of PHPUnit again.

                  这篇关于Zend_Test_PHPUnit_Constraint_DomQuery::evaluate() 的声明应该与 PHPUnit_Framework_Constraint::evaluate() 的声明兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  • <bdo id='8XyZD'></bdo><ul id='8XyZD'></ul>

                      1. <legend id='8XyZD'><style id='8XyZD'><dir id='8XyZD'><q id='8XyZD'></q></dir></style></legend>

                        <i id='8XyZD'><tr id='8XyZD'><dt id='8XyZD'><q id='8XyZD'><span id='8XyZD'><b id='8XyZD'><form id='8XyZD'><ins id='8XyZD'></ins><ul id='8XyZD'></ul><sub id='8XyZD'></sub></form><legend id='8XyZD'></legend><bdo id='8XyZD'><pre id='8XyZD'><center id='8XyZD'></center></pre></bdo></b><th id='8XyZD'></th></span></q></dt></tr></i><div id='8XyZD'><tfoot id='8XyZD'></tfoot><dl id='8XyZD'><fieldset id='8XyZD'></fieldset></dl></div>
                          <tbody id='8XyZD'></tbody>
                        <tfoot id='8XyZD'></tfoot>

                          <small id='8XyZD'></small><noframes id='8XyZD'>