Issue Details (XML | Word | Printable)

Key: ZF-9244
Type: Unit Tests: Improvement Unit Tests: Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Matthew Weier O'Phinney
Reporter: Hector Virgen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Warnings emitted from DOMDocument should be suppressed.

Created: 23/Feb/10 10:50 AM   Updated: 23/Feb/10 11:45 AM   Resolved: 23/Feb/10 11:44 AM
Component/s: Zend_Dom_Query
Affects Version/s: 1.10.1
Fix Version/s: 1.10.2

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide

When using PHPUnit, all warnings are promoted to exceptions and can cause tests to fail when using Zend_Test_PHPUnit_ControllerTestCase#assertQuery(). This is because assertQuery() uses Zend_Dom_Query, which in turn uses DOMDocument for parsing.

In ZF 1.10.0, errors were suppressed but in 1.10.1 they are not.

Perhaps ZF Zend_Dom_Query should be capturing the warnings instead of letting them bubble up to the general error handler. See http://us.php.net/manual/en/domdocument.loadhtml.php



Matthew Weier O'Phinney added a comment - 23/Feb/10 11:44 AM

This is already resolved in trunk and the 1.10 release branch, and will release with 1.10.2.