Issue Type: Bug Created: 2008-11-06T15:09:06.000+0000 Last Updated: 2008-11-07T08:23:20.000+0000 Status: Resolved Fix version(s): Reporter: Clay Loveless (clay) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Test_PHPUnit
Related issues: Attachments:
Zend_Test_PHPUnit_ControllerTestCase cannot be used with PHPUnit's code coverage feature.
I'm using Zend_Framework 1.6.2 and PHPUnit 3.3.3.
Regrettably, PHPUnit_Util_Report_Node_File attempts to override a property called __liHtml on line 300. This triggers a Zend_Exception on line 71 of Zend_Test_PHPUnit_ControllerTestCase.
It seems that either PHPUnit needs to be cleaner about its use of class properties, or Zend_Test_PHPUnit_ControllerTestCase needs to check more than just the property name to see if the property being overridden is truly non-public. In this case, PHPUnit is violating Zend Framework naming conventions, but aside from that, the "Overloading of non-public properties is prohibited" exception is actually incorrect, since the property is public, but does not follow the ZF convention.
Posted by Matthew Weier O'Phinney (matthew) on 2008-11-07T08:23:20.000+0000
Fixed in trunk in r12371; will ship with 1.7.0
Have you found an issue?
See the Overview section for more details.