CrEOF\Spatial\Tests\PHP\Types\Geometry\MultiLineStringTest::testMultiLineStringFromObjectsGetLastLineString PHP Method

testMultiLineStringFromObjectsGetLastLineString() public method

    public function testMultiLineStringFromObjectsGetLastLineString()
    {
        $lineString1 = new LineString(array(new Point(0, 0), new Point(10, 0), new Point(10, 10), new Point(0, 10), new Point(0, 0)));
        $lineString2 = new LineString(array(new Point(5, 5), new Point(7, 5), new Point(7, 7), new Point(5, 7), new Point(5, 5)));
        $polygon = new MultiLineString(array($lineString1, $lineString2));
        $this->assertEquals($lineString2, $polygon->getLineString(-1));
    }