PHPUnit - Testing for cases that are not handled by the base function

Hello,

I have a query about PHPUnit. How do I create a test case in PHPUnit for cases that are NOT handled in the base class itself. For example, Please Consider the following showMessage method.


Class Message
{

	public function showMessage($type = 1)
	{
		
		if(1 == $type){
			return 'Success';
		}elseif(2 == $type){
			return 'ERROR';
		}
	
	}

}

In the showMessage method above, there should also be a case that if the $type is anything other than 1 or 2, so it should have a else case, so the conditions should be something like


		if(1 == $type){
			return 'Success';
		}elseif(2 == $type){
			return 'ERROR';
		}else{
			return 'UNKNOWN';
		}

Thanks for any inputs

PS: Let me tell you why exactly I asked the question. I need to write test cases for codes that one of my fellow mate wrote and I noticed that he didn’t covered the else{ return ‘UNKNOWN’;} part in his code. So I wanted to know how do I write a test case that would fail his code by passing a value in his showMessage() method that was not handled by him in his code.