public function setUp()
{
$this->restoreErrorHandler();
$this->errorHandler = function ($errno, $errstr) {
return false !== strstr($errstr, Request::class . ' is now deprecated');
};
set_error_handler($this->errorHandler, E_USER_DEPRECATED);
$psrRequest = new PsrRequest([], [], 'http://example.com/', 'GET', 'php://memory');
$this->original = $psrRequest;
$this->request = new Request($this->original);
}