'', 'country_name' => '', 'region_name' => '', 'city' => '', 'latitude' => '', 'longitude' => '', 'time_zone' => '', ]; /** @var EmptyIpLocationResolver */ private $resolver; public function setUp() { $this->resolver = new EmptyIpLocationResolver(); } /** * @test * @dataProvider provideEmptyResponses */ public function alwaysReturnsAnEmptyResponse(array $expected, string $ipAddress) { $this->assertEquals($expected, $this->resolver->resolveIpLocation($ipAddress)); } public function provideEmptyResponses(): array { return map(range(0, 5), function () { return [self::EMPTY_RESP, $this->generateRandomString(10)]; }); } }