« Return to Thread: Unit tests and method visibility

Unit tests and method visibility

by Francois Suter-2 :: Rate this Message:

Reply to Author | View in Thread

Hi all,

I'm trying to design my first unit tests (wow!) and I'm faced with a
problem. I want to test the result of a method which should logically be
"protected". But since the test is outside the scope of the class that
method belongs to, I get a fatal error trying to call it.

Is there a way to design unit tests for protected (or private) methods?

Cheers

--

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

 « Return to Thread: Unit tests and method visibility