public function setUp()
{
$this->restoreErrorHandler();
$this->errorHandler = function ($errno, $errstr) {
return false !== strstr($errstr, Response::class . ' is now deprecated');
};
set_error_handler($this->errorHandler, E_USER_DEPRECATED);
$this->original = new PsrResponse();
$this->response = new Response($this->original);
}