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