public function testHandleWhenTheControllerIsAClosure() {
$response = new Response('foo');
$dispatcher = new EventDispatcher();
$kernel = new HttpKernel($dispatcher, $this
->getResolver(function () use ($response) {
return $response;
}));
$this
->assertSame($response, $kernel
->handle(new Request()));
}