$request =
new Request();
$request->attributes->
set(RequestTransformer::ORIGINAL_REQUEST_URI, '/foo'
);
$store->
write($request,
new Response());
} public function testInvoke(): void
{ $gateway =
$this->
createMock(AbstractReverseProxyGateway::
class);
$gateway->
expects(static::
once())->
method('invalidate'
)->
with(['foo'
]);
$store =
new ReverseProxyCache($gateway,
$this->
createMock(CacheTracer::
class),
[]);
$store(new InvalidateCacheEvent(['foo'
]));
}}