ZF-9243: DOM errors are caught by PHPUnit when using ControllerTestCase

Issue Type: Bug Created: 2010-02-23T09:30:18.000+0000 Last Updated: 2010-02-23T11:43:50.000+0000 Status: Resolved Fix version(s): - 1.10.2 (24/Feb/10)

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

  • Zend_Test_PHPUnit

Related issues: - ZF-9244



In 1.10.1, we removed the suppression operator from DOMDocument::loadFile/loadHTMLFile calls. However, this means that if DOMDocument reports errors -- even just notices or warnings -- PHPUnit's error handler catches these and reports errors. This can result in false negatives in ControllerTestCase test cases.


Posted by Matthew Weier O'Phinney (matthew) on 2010-02-23T09:52:23.000+0000

Fixed in trunk and 1.10 release branch.

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.