Issues

ZF-4257: testBasicLogging(Zend_Log_Writer_FirebugTest) unit test failure

Issue Type: Unit Tests: Problem Created: 2008-09-11T12:34:22.000+0000 Last Updated: 2008-09-14T09:45:47.000+0000 Status: Resolved Fix version(s): - 1.6.1 (15/Sep/08)

Reporter: Alexander Veremyev (alexander) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Log

Related issues: Attachments:

Description

Output: {panel} 4) testBasicLogging(Zend_Log_Writer_FirebugTest) Failed asserting that is true. {panel}

Comments

Posted by Alexander Veremyev (alexander) on 2008-09-14T09:15:00.000+0000

Zend_Wildfire_Channel_HttpHeaders class (singleton) is used to manage special request and response objects (see Zend_Log_Writer_FirebugTest->setUp() method).

Zend_Log_Writer_Firebug log writer requests Zend_Wildfire_Plugin_FirePhp singleton (-primary class for communicating with the FirePHP Firefox Extension-) to be instantiated, which, in turn, registers himself as a controllor plugin of Zend_Controller_Front.

If Zend_Controller_Front was used before and already has registered request/response objects, Zend_Controller_Plugin_Broker resets these request/response objects at the provided plugin (Zend_Wildfire_Channel_HttpHeaders singleton) and overrides expected functionality.

Zend_Controller_Front::getInstance()->resetInstance() at the test setUp() method helps.

Posted by Alexander Veremyev (alexander) on 2008-09-14T09:45:46.000+0000

Fixed.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts