コード例 #1
0
ファイル: Requester.php プロジェクト: credibility/dandb
 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;
 }
コード例 #2
0
 public function testClientHasCorrectDefaults()
 {
     $client = $this->clientFactory->createClient();
     $this->assertEquals(30, $client->getDefaultOption('timeout'));
     $this->assertEquals(30, $client->getDefaultOption('connect_timeout'));
 }