ZF-9244: Warnings emitted from DOMDocument should be suppressed.

Issue Type: Unit Tests: Improvement Created: 2010-02-23T10:50:24.000+0000 Last Updated: 2010-02-23T11:45:00.000+0000 Status: Resolved Fix version(s): - 1.10.2 (24/Feb/10)

Reporter: Hector Virgen (djvirgen) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dom_Query

Related issues: - ZF-9243



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…


Posted by Matthew Weier O'Phinney (matthew) on 2010-02-23T11:44:59.000+0000

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

Have you found an issue?

See the Overview section for more details.


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

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