$_SERVER = [
'REQUEST_METHOD' => $method,
// PHPUnit needs this entry
'SCRIPT_NAME' => self::$serverBackup['SCRIPT_NAME'],
];
}
protected function getRequestHandler()
{
return new NativeRequestHandler($this->serverParams);
}
protected function getUploadedFile($suffix = '')
{
return [
'name' => 'upload'.$suffix.'.txt',
'type' => 'text/plain',
'tmp_name' => 'owfdskjasdfsa'.$suffix,
'error' => \UPLOAD_ERR_OK,
'size' => 100,
];
}