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