<legend id='SJ2BY'><style id='SJ2BY'><dir id='SJ2BY'><q id='SJ2BY'></q></dir></style></legend>

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

    • <bdo id='SJ2BY'></bdo><ul id='SJ2BY'></ul>

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

    1. Zend_Test_PHPUnit_Constraint_DomQuery::evaluate() 的声明应该

      时间:2023-10-03

    2. <legend id='v7jm3'><style id='v7jm3'><dir id='v7jm3'><q id='v7jm3'></q></dir></style></legend>
        <tbody id='v7jm3'></tbody>
    3. <i id='v7jm3'><tr id='v7jm3'><dt id='v7jm3'><q id='v7jm3'><span id='v7jm3'><b id='v7jm3'><form id='v7jm3'><ins id='v7jm3'></ins><ul id='v7jm3'></ul><sub id='v7jm3'></sub></form><legend id='v7jm3'></legend><bdo id='v7jm3'><pre id='v7jm3'><center id='v7jm3'></center></pre></bdo></b><th id='v7jm3'></th></span></q></dt></tr></i><div id='v7jm3'><tfoot id='v7jm3'></tfoot><dl id='v7jm3'><fieldset id='v7jm3'></fieldset></dl></div>

            <bdo id='v7jm3'></bdo><ul id='v7jm3'></ul>
            <tfoot id='v7jm3'></tfoot>

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

                本文介绍了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() 的声明兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:MYSQL 不正确的 DATETIME 格式 下一篇:如何使用 Zend Framework 正确创建域?

                相关文章

                最新文章

                  <legend id='Mwvc2'><style id='Mwvc2'><dir id='Mwvc2'><q id='Mwvc2'></q></dir></style></legend>

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

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