I am new to using PHPUnit, I found out that it is easy to test if given value is desired one using assertEquals
function but I am not sure how to test for values with more than one condition such as:
function myFunction($foo, $bar, $baz)
{
if (($foo != 3) AND ($foo != 5)) {
// something
}
if (($bar < 1) OR ($bar > 10)) {
// something
}
if ( (strlen($baz) === 0) OR (strlen($baz) > 10) ) {
// something
}
}
Can anyone help on how to write unit test for these conditions please ? Thanks for your help in advance