Hi all,
How do I test a private method in via PHPUnit? Currently, I found that I must turn the method into public into to test it. Thanks.
p.s. Please do not suggest not testing the private method, thank you.
This is not a support forum, sorry. Have a look at http://sebastian-bergmann.de/archives/881-Testing-Your-Privates.html
If you need help please ask on the irc channel or on any forum. We can't provide help for phpunit users in that way. http://stackoverflow.com/questions/5010300/best-practices-to-test-protected-methods-with-phpunit-on-abstract-classes
Most helpful comment
This is not a support forum, sorry. Have a look at http://sebastian-bergmann.de/archives/881-Testing-Your-Privates.html