public function testProcessUsesResponsePrototypeForNonInteropHandlerWhenPresent()
{
$handler = function ($req, $res, $next) {
return $res;
};
$next = function ($req, $res, $err) {
Assert::fail('Next was called; it should not have been');
};
$route = new Route('/foo', $handler);
$dispatch = new Dispatch();
$dispatch->setResponsePrototype($this->response->reveal());
$this->assertSame($this->response->reveal(), $dispatch->process($route, $this->request->reveal(), $next));
}