| Total Complexity | 3 | 
| Total Lines | 32 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 8 | class ClientTest extends UnitTestCase  | 
            ||
| 9 | { | 
            ||
| 10 | /** @test */  | 
            ||
| 11 | public function it_maintains_api_host()  | 
            ||
| 12 |     { | 
            ||
| 13 | $container = [];  | 
            ||
| 14 | |||
| 15 | $client = $this->mockAPIRequest($container, $key = 'key');  | 
            ||
| 16 | |||
| 17 |         $client->request('POST'); | 
            ||
| 18 | |||
| 19 | $this->assertAPIBaseURIEquals($container, 'api.elasticemail.com');  | 
            ||
| 20 | }  | 
            ||
| 21 | |||
| 22 | /** @test */  | 
            ||
| 23 | public function throws_missing_api_key_exception()  | 
            ||
| 24 |     { | 
            ||
| 25 | $this->expectException(ElasticEmailException::class);  | 
            ||
| 26 | |||
| 27 |         new Client(''); | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | /** @test */  | 
            ||
| 31 | public function it_appends_api_key_as_query_string()  | 
            ||
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 |