resolver = new EmptyIpLocationResolver(); } /** * @test * @dataProvider provideEmptyResponses */ public function alwaysReturnsAnEmptyLocation(string $ipAddress): void { $this->assertEquals(Location::emptyInstance(), $this->resolver->resolveIpLocation($ipAddress)); } public function provideEmptyResponses(): array { return map(range(0, 5), function () { return [$this->generateRandomString(15)]; }); } }