| Total Complexity | 3 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class FixerHttpClientTest extends TestCase |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @throws MissingAPIKeyException |
||
| 18 | */ |
||
| 19 | public function testFixerHttpClientIsAValidImplementationOfClientInterface() |
||
| 20 | { |
||
| 21 | $client = new FixerHttpClient('some-key'); |
||
| 22 | |||
| 23 | $this->assertInstanceOf(ClientInterface::class, $client); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @throws MissingAPIKeyException |
||
| 28 | */ |
||
| 29 | public function testMissingAPIKeyExceptionIsThrownWhenTheAPIKeyIsEmpty() |
||
| 30 | { |
||
| 31 | $this->expectException(MissingAPIKeyException::class); |
||
| 32 | new FixerHttpClient(''); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @throws MissingAPIKeyException |
||
| 37 | */ |
||
| 38 | public function testConfigIsOverwrittenWithCustomConfig() |
||
| 45 | } |
||
| 46 | } |
||
| 47 |