Zend Framework

Warnings emitted from DOMDocument should be suppressed.

Details

  • Type: Unit Tests: Improvement Unit Tests: Improvement
  • Status: Resolved Resolved
  • Priority: Major 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

Activity

Hide
Matthew Weier O'Phinney added a comment -

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

Show
Matthew Weier O'Phinney added a comment - This is already resolved in trunk and the 1.10 release branch, and will release with 1.10.2.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: