Location\Distance\HaversineTest::setUp PHP Method

setUp() protected method

This method is called before a test is executed.
protected setUp ( )
    protected function setUp()
    {
        $ellipsoidConfig = ['name' => 'WGS-84', 'a' => 6378137.0, 'f' => 298.257223563];
        $this->ellipsoid = Ellipsoid::createFromArray($ellipsoidConfig);
        $this->calculator = new Haversine();
    }