/** * @param mixed $latLngOrBounds * @param mixed $distance (in meters) * @return Bounds */ public function shrink($latLngOrBounds, $distance) { return $this->transformBounds($latLngOrBounds, -Distance::normalize($distance)->meters()); }
public function testNormalizeShouldThrowExceptionForInvalidInput() { $this->setExpectedException('\\InvalidArgumentException'); Distance::normalize('1000foo'); }