class FastlyReverseProxyGatewayTest extends TestCase
{ private Client
$client;
private MockHandler
$mockHandler;
protected function setUp(): void
{ parent::
setUp();
$this->mockHandler =
new MockHandler();
$this->client =
new Client(['handler' => HandlerStack::
create($this->mockHandler
)]);
} public function testDecoration(): void
{ $gateway =
new FastlyReverseProxyGateway($this->client, 'test', 'test', '0', 3, '', '', 'http://localhost'
);
static::
expectException(DecorationPatternException::
class);
$gateway->
getDecorated();
}