ZF-4842: Zend_Exception thrown with Zend_Test_PHPUnit_ControllerTestCase and code coverage
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.