Exemplo n.º 1
0
 public function testGetHttpClientHasNoTokenIfNotProvided()
 {
     Service::setHttpClientClass('GuzzleHttp\\Client');
     $client = Service::getHttpClient();
     $this->assertInstanceOf('GuzzleHttp\\Client', $client);
     $this->assertArrayNotHasKey('Authorization', $client->getDefaultOption('headers'));
 }