protected function setUp(): void
{ parent::
setUp();
$this->mockHandler =
new MockHandler();
$this->client =
new Client(['handler' => HandlerStack::
create($this->mockHandler
)]);
} public function testDecorated(): void
{ $gateway =
new VarnishReverseProxyGateway([], 0,
$this->client
);
static::
expectException(DecorationPatternException::
class);
$gateway->
getDecorated();
} public function testTagggingMissingResponse(): void
{ $gateway =
new VarnishReverseProxyGateway([], 0,
$this->client
);
static::
expectException(\ArgumentCountError::
class);
static::
expectExceptionMessage('Too few arguments to function Shopware\Storefront\Framework\Cache\ReverseProxy\VarnishReverseProxyGateway::tag()'
);
/** @phpstan-ignore-next-line */