addProvider(new Address($faker)); $this->faker = $faker; } public function testLatitude() { $latitude = $this->faker->latitude(); $this->assertInternalType('float', $latitude); $this->assertGreaterThanOrEqual(-90, $latitude); $this->assertLessThanOrEqual(90, $latitude); } public function testLongitude() { $longitude = $this->faker->longitude(); $this->assertInternalType('float', $longitude); $this->assertGreaterThanOrEqual(-180, $longitude); $this->assertLessThanOrEqual(180, $longitude); } }