I want to test this function:
public function reset()
{
if(!$this->onBeforeReset()) // Protected, internal method
{
return false;
}
// Continue with tests
}
I'd wish to test it when onBeforeReset
function return false or true, too.
How can I do that? Is that possible?
Is there a way to "mock" some parts of the class under test?