Issues

ZF-4506: RuntimeException: Could not create and run test suite: Overloading of non-public properties is prohibited

Description


phpunit --coverage-html /tmp/coverage-output testDir/ 
PHPUnit 3.3.1 by Sebastian Bergmann.
.
Time: 0 seconds
OK (1 test, 1 assertion)

Generating code coverage report, this may take a moment.
RuntimeException: Could not create and run test suite: Overloading of non-public properties is prohibited in /usr/share/php/PHPUnit/TextUI/Command.php on line 135

Call Stack:
    0.0025      59968   1. {main}() /usr/bin/phpunit:0
    0.0232     307908   2. require('/usr/share/php/PHPUnit/TextUI/Command.php') /usr/bin/phpunit:44
    0.1090    3790312   3. PHPUnit_TextUI_Command::main() /usr/share/php/PHPUnit/TextUI/Command.php:685


The first exception being thrown in this case is:
"Zend_Exception: Overloading of non-public properties is prohibited in /srv/foo/trunk/lib/Zend/Test/PHPUnit/ControllerTestCase.php on line 72"

In callstack there is "Zend_Test_PHPUnit_ControllerTestCase->__set('__liHtml') called at [/usr/share/php/PHPUnit/Util/Report/Node/File.php:290]"

So setting '$test->__liHtml' inside PHPUnit/Util/Report/Node/File.php:290 causes Zend_Test_PHPUnit_ControllerTestCase::__set() to throw an exception.
 

Comments

http://framework.zend.com/issues/browse/ZF-3835 This describes the solution for this bug and the fix is allready in the svn.