Details
-
Type:
Unit Tests: Problem
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.3, 1.6.0RC2
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Rest_Server
-
Labels:None
Description
Correct output buffering management produces wrong tests results output. Some part of output is skipped.
Output failure happened because output ob_end_clean() was used twice.
The root of the problem is test failure plus catching Exception instead of Zend_Rest_Server_Exception ($this->fail() PHPUnit functionality is also based on exceptions)