<?php
/*
* eduVPN - End-user friendly VPN.
*
* Copyright: 2016-2019, The Commons Conservancy eduVPN Programme
* SPDX-License-Identifier: AGPL-3.0+
*/
namespace LC\Portal\Tests;
use LC\Common\Http\Request;
class TestRequest extends Request
{
public function __construct(array $serverData, array $getData = [], array $postData = [])
{
$serverData = array_merge(
[
'SERVER_NAME' => 'vpn.example',
'SERVER_PORT' => 80,
'REQUEST_SCHEME' => 'http',
'REQUEST_METHOD' => 'GET',
'REQUEST_URI' => '/',
'SCRIPT_NAME' => '/index.php',
],
$serverData
);
parent::__construct($serverData, $getData, $postData);
}
}