public function testCorrection() { $Route = new Route\Object(array(Route\Object::LATITUDES => array(49.44, 49.441, 49.442, 49.443, 49.444, 49.445, 49.446, 49.447, 49.448, 49.449, 49.45), Route\Object::LONGITUDES => array(7.76, 7.761, 7.762, 7.763, 7.764, 7.765, 7.766, 7.767, 7.768, 7.769, 7.77))); $Calc = new Calculator($Route); if ($Calc->tryToCorrectElevation()) { $this->assertEmpty($Route->elevationsOriginal()); $this->assertNotEmpty($Route->elevationsCorrected()); $this->assertNotEmpty($Route->get(Route\Object::ELEVATIONS_SOURCE)); } else { $this->markTestSkipped('No elevation correction was not available.'); } }