/**
* Tests the mapType method
*
* @return void
*/
public function testMapType()
{
$response = new Response();
$this->assertEquals('wav', $response->mapType('audio/x-wav'));
$this->assertEquals('pdf', $response->mapType('application/pdf'));
$this->assertEquals('xml', $response->mapType('text/xml'));
$this->assertEquals('html', $response->mapType('*/*'));
$this->assertEquals('csv', $response->mapType('application/vnd.ms-excel'));
$expected = ['json', 'xhtml', 'css'];
$result = $response->mapType(['application/json', 'application/xhtml+xml', 'text/css']);
$this->assertEquals($expected, $result);
}