$gateway =
new FastlyReverseProxyGateway($this->client, 'test', 'key', '0', 3, '', '', 'http://localhost'
);
$gateway->
ban(['/'
]);
} /**
* @return array<string, array<\Throwable|string>>
*/
public static function providerExceptions(): iterable
{ yield 'timed out' =>
[ new ServerException('request timed out',
new Request('GET', '/'
),
new GuzzleResponse(500
)),
'BAN request failed to / failed with error: request timed out',
];
yield 'general php error' =>
[ new TransferException('test'
),
'test',
];
}}