public function testWrapperDecoratesAndProxiesToCallableInteropMiddleware()
{
$request = $this->prophesize(ServerRequestInterface::class)->reveal();
$delegate = $this->prophesize(DelegateInterface::class)->reveal();
$response = $this->prophesize(ResponseInterface::class)->reveal();
$decorator = new CallableInteropMiddlewareWrapper(function ($request, DelegateInterface $delegate) use($response) {
return $response;
});
$this->assertSame($response, $decorator->process($request, $delegate));
}