I can now account for the unit test failures in the HTTP Auth adapter.
Revision 8168, which fixes ZF-2229 (Allow response header field names to be
case-insensitive), added some header name normalization to
Zend_Controller_Response_Abstract. This broke the unit test by causing the
expected header names no longer match. The unit test is now fixed, with
revision 8269 in the trunk.

Regards,
Bryce Lohr


On Tue, 19 Feb 2008 13:02:24 -0800 (PST), "Matthew Ratzloff"
<[EMAIL PROTECTED]> wrote:
> Am I doing something wrong?  Nothing is enabled in the configuration.
> This is just the core components.
> 
> -Matt
> 
> ------------------------------
> 
> local:library matt$ phpunit AllTests.php
> PHPUnit 3.2.14 by Sebastian Bergmann.
> 
> ..................................................S.........   60 / 5152
> .FFF.FFF...FFF..............................................  120 / 5152
> ............................................................  180 / 5152
> .......................................................SSSS.  240 / 5152
> ............................................................  300 / 5152
> ............................................................  360 / 5152
> ............................................................  420 / 5152
> .....................................SSS....................  480 / 5152
> ...S.S.SS...................................................  540 / 5152
> .................................S........................S.  600 / 5152
> ............................................................  660 / 5152
> ............................................................  720 / 5152
> ...PHP Warning:  Cannot modify header information - headers already sent
> by (output started at
> /usr/local/php-5.2.5/lib/php/PHPUnit/Util/Printer.php:145) in
> [...]/tests/library/Zend/Controller/Response/Abstract.php on line 318
> PHP Stack trace:
> PHP   1. {main}() /usr/local/php-5.2.5/bin/phpunit:0
> PHP   2. require() /usr/local/php-5.2.5/bin/phpunit:44
> PHP   3. PHPUnit_TextUI_Command::main()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/Command.php:528
> PHP   4. PHPUnit_TextUI_TestRunner->doRun()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/Command.php:112
> PHP   5. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/TestRunner.php:303
> PHP   6. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
> PHP   7. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
> PHP   8. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
> PHP   9. PHPUnit_Framework_TestSuite->runTest()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:664
> PHP  10. PHPUnit_Framework_TestCase->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:684
> PHP  11. PHPUnit_Framework_TestResult->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:376
> PHP  12. PHPUnit_Framework_TestCase->runBare()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestResult.php:619
> PHP  13. PHPUnit_Framework_TestCase->runTest()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:401
> PHP  14. ReflectionMethod->invoke()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:476
> PHP  15. Zend_Controller_Response_HttpTest->test__toString()
> [...]/tests/library/Zend/Controller/Response/HttpTest.php:0
> PHP  16. Zend_Controller_Response_Abstract->__toString()
> [...]/tests/library/Zend/Controller/Response/HttpTest.php:176
> PHP  17. Zend_Controller_Response_Abstract->sendResponse()
> [...]/library/Zend/Controller/Response/Abstract.php:752
> PHP  18. Zend_Controller_Response_Abstract->sendHeaders()
> [...]/library/Zend/Controller/Response/Abstract.php:727
> PHP  19. header() [...]/library/Zend/Controller/Response/Abstract.php:318
> .........................................................  780 / 5152
> ............................................................  840 / 5152
> ..........................F.................................  900 / 5152
> ............................................................  960 / 5152
> ...................................E........................ 1020 / 5152
> ............................................................ 1080 / 5152
> .............................................I.............. 1140 / 5152
> .........................................I......SSSSSSSSSSS. 1200 / 5152
> .......................................F..........E......F.. 1260 / 5152
> ............................................................ 1320 / 5152
> ............................................................ 1380 / 5152
> ............................................................ 1440 / 5152
> ............................................................ 1500 / 5152
> ............................................................ 1560 / 5152
> ............................................................ 1620 / 5152
> ............................................................ 1680 / 5152
> ............................................................ 1740 / 5152
> ............................................................ 1800 / 5152
> ............................................................ 1860 / 5152
> ....................F......I................................ 1920 / 5152
> ............................................................ 1980 / 5152
> ............................................................ 2040 / 5152
> ............................................................ 2100 / 5152
> ............................................................ 2160 / 5152
> ............................................................ 2220 / 5152
> ............................................................ 2280 / 5152
> ............................................................ 2340 / 5152
> ............................................................ 2400 / 5152
> ............................................................ 2460 / 5152
> ............................................................ 2520 / 5152
> ............................................................ 2580 / 5152
> ............................................................ 2640 / 5152
> ............................................................ 2700 / 5152
> ............................................................ 2760 / 5152
> .................................S..........I............... 2820 / 5152
> .....................................I.............S........ 2880 / 5152
> ..S..EEEE.............EEE................................... 2940 / 5152
> ............................................................ 3000 / 5152
> ...S........................................................ 3060 / 5152
> ............................................................ 3120 / 5152
> ............................................................ 3180 / 5152
> .....FI..................................................... 3240 / 5152
> ............................................................ 3300 / 5152
> ............................................................ 3360 / 5152
> ............................................................ 3420 / 5152
> ............................................................ 3480 / 5152
> ............................................................ 3540 / 5152
> ............................................................ 3600 / 5152
> ............................................................ 3660 / 5152
> ............................................................ 3720 / 5152
> ............................................................ 3780 / 5152
> ...........................................................F 3840 / 5152
> ............................................................ 3900 / 5152
> ............................................................ 3960 / 5152
> ............................................................ 4020 / 5152
> ...................E.............EEEEEEE.................... 4080 / 5152
> ............................................................ 4140 / 5152
> ............................................................ 4200 / 5152
> ..........................F................................. 4260 / 5152
> ............................................................ 4320 / 5152
> ............................................................ 4380 / 5152
> ............................................................ 4440 / 5152
> ........................S................................... 4500 / 5152
> .....S...............................SSS.................... 4560 / 5152
> ............................................................ 4620 / 5152
> ......................F...F....F...F..PHP Fatal error:  Call to a member
> function item() on a non-object in
> [...]/library/Zend/Service/Technorati/KeyInfoResult.php on line 74
> PHP Stack trace:
> PHP   1. {main}() /usr/local/php-5.2.5/bin/phpunit:0
> PHP   2. require() /usr/local/php-5.2.5/bin/phpunit:44
> PHP   3. PHPUnit_TextUI_Command::main()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/Command.php:528
> PHP   4. PHPUnit_TextUI_TestRunner->doRun()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/Command.php:112
> PHP   5. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/TestRunner.php:303
> PHP   6. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
> PHP   7. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
> PHP   8. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
> PHP   9. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
> PHP  10. PHPUnit_Framework_TestSuite->runTest()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:664
> PHP  11. PHPUnit_Framework_TestCase->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:684
> PHP  12. PHPUnit_Framework_TestResult->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:376
> PHP  13. PHPUnit_Framework_TestCase->runBare()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestResult.php:619
> PHP  14. PHPUnit_Framework_TestCase->runTest()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:401
> PHP  15. ReflectionMethod->invoke()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:476
> PHP  16.
>
Zend_Service_Technorati_KeyInfoResultTest->testConstructThrowsExceptionWithInvalidDom()
> [...]/tests/library/Zend/Service/Technorati/KeyInfoResultTest.php:0
> PHP  17.
>
Zend_Service_Technorati_TestCase->_testConstructThrowsExceptionWithInvalidDom()
> [...]/tests/library/Zend/Service/Technorati/KeyInfoResultTest.php:59
> PHP  18. ReflectionClass->newInstanceArgs()
> [...]/tests/library/Zend/Service/Technorati/TestCase.php:77
> PHP  19. Zend_Service_Technorati_KeyInfoResult->__construct()
> [...]/library/Zend/Service/Technorati/KeyInfoResult.php:0
> 
> Fatal error: Call to a member function item() on a non-object in
> [...]/library/Zend/Service/Technorati/KeyInfoResult.php on line 74
> 
> Call Stack:
>     0.0003      48672   1. {main}() /usr/local/php-5.2.5/bin/phpunit:0
>     0.0030     237268   2.
> require('/usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/Command.php')
> /usr/local/php-5.2.5/bin/phpunit:44
>     0.1019    4147280   3. PHPUnit_TextUI_Command::main()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/Command.php:528
>     3.7100   97650408   4. PHPUnit_TextUI_TestRunner->doRun()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/Command.php:112
>     3.7102   97657152   5. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/TextUI/TestRunner.php:303
>     3.7338   97658884   6. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
>   134.4690  164176992   7. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
>   136.1943  164571596   8. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
>   136.8251  165033476   9. PHPUnit_Framework_TestSuite->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:647
>   136.8259  165036940  10. PHPUnit_Framework_TestSuite->runTest()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:664
>   136.8259  165036940  11. PHPUnit_Framework_TestCase->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestSuite.php:684
>   136.8259  165037088  12. PHPUnit_Framework_TestResult->run()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:376
>   136.8259  165038864  13. PHPUnit_Framework_TestCase->runBare()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestResult.php:619
>   136.8262  165046028  14. PHPUnit_Framework_TestCase->runTest()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:401
>   136.8262  165047708  15. ReflectionMethod->invoke()
> /usr/local/php-5.2.5/lib/php/PHPUnit/Framework/TestCase.php:476
>   136.8262  165047808  16.
>
Zend_Service_Technorati_KeyInfoResultTest->testConstructThrowsExceptionWithInvalidDom()
> [...]/tests/library/Zend/Service/Technorati/KeyInfoResultTest.php:0
>   136.8262  165047976  17.
>
Zend_Service_Technorati_TestCase->_testConstructThrowsExceptionWithInvalidDom()
> [...]/tests/library/Zend/Service/Technorati/KeyInfoResultTest.php:59
>   136.8262  165049172  18. ReflectionClass->newInstanceArgs()
> [...]/tests/library/Zend/Service/Technorati/TestCase.php:77
>   136.8262  165049556  19.
> Zend_Service_Technorati_KeyInfoResult->__construct()
> [...]/library/Zend/Service/Technorati/KeyInfoResult.php:0

Reply via email to