CrEOF\Spatial\Tests\PHP\Types\Geometry\PolygonTest::testSolidPolygonFromObjectsToArray PHP Method

testSolidPolygonFromObjectsToArray() public method

    public function testSolidPolygonFromObjectsToArray()
    {
        $expected = array(array(array(0, 0), array(10, 0), array(10, 10), array(0, 10), array(0, 0)));
        $rings = array(new LineString(array(new Point(0, 0), new Point(10, 0), new Point(10, 10), new Point(0, 10), new Point(0, 0))));
        $polygon = new Polygon($rings);
        $this->assertEquals($expected, $polygon->toArray());
    }