Details
-
Type:
Unit Tests: Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.1
-
Fix Version/s: 1.10.2
-
Component/s: Zend_Dom_Query
-
Labels:None
Description
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
Issue Links
| This issue duplicates: | ||||
| ZF-9243 | DOM errors are caught by PHPUnit when using ControllerTestCase |
|
|
|
This is already resolved in trunk and the 1.10 release branch, and will release with 1.10.2.