public function testGetCookies() { $request =
new Request('http://www.example.com/', 'get',
[],
[],
['foo' => 'bar'
]);
$this->
assertEquals(['foo' => 'bar'
],
$request->
getCookies(), '->getCookies() returns the cookies of the request'
);
} public function testGetServer() { $request =
new Request('http://www.example.com/', 'get',
[],
[],
[],
['foo' => 'bar'
]);
$this->
assertEquals(['foo' => 'bar'
],
$request->
getServer(), '->getServer() returns the server parameters of the request'
);
} public function testAllParameterValuesAreConvertedToString() { $parameters =
[ 'foo' => 1,
'bar' =>
[ 'baz' => 2,
],
];