This question already has an answer here:
- Mock private method with PHPUnit 10 answers
I am new to TDD. I have a simple class method
private function getSelfSubmissionMsg($type)
{
switch ($type) {
case 'efl':
return 'Some message.';
case 'split':
return 'Some other message.';
}
}
How can I test this method using phpunit
</div>