| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class EmptyIpLocationResolverTest extends TestCase |
||
| 14 | { |
||
| 15 | use StringUtilsTrait; |
||
| 16 | |||
| 17 | /** @var EmptyIpLocationResolver */ |
||
| 18 | private $resolver; |
||
| 19 | |||
| 20 | public function setUp(): void |
||
| 21 | { |
||
| 22 | $this->resolver = new EmptyIpLocationResolver(); |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @test |
||
| 27 | * @dataProvider provideEmptyResponses |
||
| 28 | */ |
||
| 29 | public function alwaysReturnsAnEmptyLocation(string $ipAddress): void |
||
| 30 | { |
||
| 31 | $this->assertEquals(Location::emptyInstance(), $this->resolver->resolveIpLocation($ipAddress)); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function provideEmptyResponses(): array |
||
| 38 | }); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |