コード例 #1
0
 public function testCreateClientHasCorrectGuzzleOpts()
 {
     $client = $this->clientFactory->createClient();
     $this->assertEquals(3, $client->getDefaultOption('timeout'));
     $this->assertEquals(3, $client->getDefaultOption('connect_timeout'));
 }
コード例 #2
0
ファイル: Requester.php プロジェクト: banderon1/open-weather
 /**
  * @param ClientFactory $clientFactory
  */
 public function __construct(ClientFactory $clientFactory)
 {
     $this->client = $clientFactory->createClient();
 }