Update TestCase.php

If the output buffer method is not started,  ob_end_clean() method  has been returned  by error massages : "ErrorException: ob_end_clean(): failed to delete buffer. No buffer to delete"