Ejemplo n.º 1
0
 public function __construct(ClientFactory $clientFactory, $clientId, $clientSecret, CacheableInterface $cache = null, $accessToken = null)
 {
     $this->guzzleClient = $clientFactory->createClient();
     $this->clientId = $clientId;
     $this->clientSecret = $clientSecret;
     $this->cache = $cache;
     $this->accessToken = $accessToken;
 }
Ejemplo n.º 2
0
 public function testClientHasCorrectDefaults()
 {
     $client = $this->clientFactory->createClient();
     $this->assertEquals(30, $client->getDefaultOption('timeout'));
     $this->assertEquals(30, $client->getDefaultOption('connect_timeout'));
 }