public function testHeaders() {
$handler = new ExceptionHandler(false);
$response = $handler
->createResponse(new MethodNotAllowedHttpException(array(
'POST',
)));
$this
->assertEquals('405', $response
->getStatusCode());
$this
->assertEquals('POST', $response->headers
->get('Allow'));
}