public function testCreateClientHasCorrectGuzzleOpts() { $client = $this->clientFactory->createClient(); $this->assertEquals(3, $client->getDefaultOption('timeout')); $this->assertEquals(3, $client->getDefaultOption('connect_timeout')); }
/** * @param ClientFactory $clientFactory */ public function __construct(ClientFactory $clientFactory) { $this->client = $clientFactory->createClient(); }