public function testGetDistance() { $winterthur = (int) CM_Db_Db::select('cm_model_location_city', 'id', array('name' => 'Winterthur'))->fetchColumn(); $basel = (int) CM_Db_Db::select('cm_model_location_city', 'id', array('name' => 'Basel'))->fetchColumn(); $location = new CM_Model_Location(CM_Model_Location::LEVEL_CITY, $basel); $locationAgainst = new CM_Model_Location(CM_Model_Location::LEVEL_CITY, $winterthur); $this->assertSame(86720, $location->getDistance($locationAgainst)); }