/** * @expectedException InvalidArgumentException */ public function testInvalidTypeLongitude() { $point = new GeoPoint(1.1, 2.2); $point->setLongitude('bar'); }