Re: Re: [PHPUnit] testing protected functions
| From: | Sebastian Bergmann | Date: | Fri, 07 Apr 2006 09:54:44 +0000 |
| Subject: | Re: Re: [PHPUnit] testing protected functions | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23568@lists.php.net to get a copy of this message | ||
Ron Rademaker schrieb:
> Would is be very complex to add support for protected methods (any
> pointers on what classes to look at to add the support?) or should I
> just search & replace protected with public, test, and search & replace
> public with protected?
I don't really see a need for this functionality to be in PHPUnit, see
Paul's reply for the reasoning.
Given that, I haven't looked into implementing this but I don't think
that the PHP Reflection API offers the functionality needed (calling
non-public methods).
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69