diff --git a/test.php b/test.php index 19c908e..759412a 100644 --- a/test.php +++ b/test.php @@ -28,6 +28,11 @@ switch ($humanChoice) case 'scissors': $humanChoiceItem = new Scissors(); + break; + + default: + exit('Invalid choice!'); + } @@ -44,6 +49,10 @@ switch ($computerChoice) case 'scissors': $computerChoiceItem = new Scissors(); + break; + + default: + exit('Internal error: Invalid computer choice.'); }