Issues

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

Issue Type: Bug Created: 2008-10-07T01:59:52.000+0000 Last Updated: 2008-10-07T08:20:16.000+0000 Status: Resolved Fix version(s): - 1.6.2 (13/Oct/08)

Reporter: Piotr Czachur (zimnyx) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Test_PHPUnit

Related issues: Attachments:

Description

<pre class="highlight">
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




<pre class="highlight">
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

Posted by Marco Kaiser (bate) on 2008-10-07T08:20:16.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts