Should private/protected methods be included in test?

From: Date: Fri, 27 Mar 2009 23:45:23 +0000
Subject: Should private/protected methods be included in test?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-51679@lists.php.net to get a copy of this message
Hello! Just wondering, what do you usually include in your test suite? Some websites recommend testing all public methods. This makes sense with exception of simple getters/setters methods. But what about the private/protected methods? Whould I also write test cases for those? By the way, is it OK to not write tests for simple getters/setters that only return or set an instance variable?

« previous php.pear.dev (#51679) next »