public function testProcessRaisesExceptionForNonInteropHandlersWhenNoResponsePrototypeIsPresent()
{
$handler = function ($req, $res, $next) use(&$triggered) {
Assert::fail('Handler was called; it should not have been');
};
$next = function ($req, $res, $err) {
Assert::fail('Next was called; it should not have been');
};
$route = new Route('/foo', $handler);
$dispatch = new Dispatch();
$this->setExpectedException(Exception\MissingResponsePrototypeException::class);
$dispatch->process($route, $this->request->reveal(), $next);
}