Location\PolylineTest::testGetReverseWorksAsExpected PHP Method

testGetReverseWorksAsExpected() public method

    public function testGetReverseWorksAsExpected()
    {
        $reversed = $this->polyline->getReverse();
        $expected = new Polyline();
        $expected->addPoint(new Coordinate(33.9, -118.4));
        $expected->addPoint(new Coordinate(40.7, -74.0));
        $expected->addPoint(new Coordinate(64.09999999999999, -21.9));
        $expected->addPoint(new Coordinate(52.5, 13.5));
        $this->assertEquals($expected, $reversed);
    }