Location\LineTest::testIfGetBearingReversedWorksAsExpected PHP Method

testIfGetBearingReversedWorksAsExpected() public method

    public function testIfGetBearingReversedWorksAsExpected()
    {
        $point1 = new Coordinate(0, 0);
        $point2 = new Coordinate(0, 10);
        $line = new Line($point2, $point1);
        $bearingCalculator = new BearingEllipsoidal();
        $this->assertEquals(270.0, $line->getBearing($bearingCalculator));
    }