/**
* @dataProvider cosineLawDataProvider
*/
public function testCosineLawCalculate($lat1, $long1, $lat2, $long2, $expected_result)
{
$CosineLaw = new C\CosineLaw($this->getObject());
$point1 = new N\LatLong(new N\Coordinate($lat1), new N\Coordinate($long1));
$point2 = new N\LatLong(new N\Coordinate($lat2), new N\Coordinate($long2));
$metres = $CosineLaw->calculate($point1, $point2);
$this->assertEquals($expected_result, $metres, '', 0.2);
}