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

testSolidPolygonFromArraysToString() public method

    public function testSolidPolygonFromArraysToString()
    {
        $expected = '(0 0,10 0,10 10,0 10,0 0),(0 0,10 0,10 10,0 10,0 0)';
        $rings = array(array(array(0, 0), array(10, 0), array(10, 10), array(0, 10), array(0, 0)), array(array(0, 0), array(10, 0), array(10, 10), array(0, 10), array(0, 0)));
        $polygon = new Polygon($rings);
        $result = (string) $polygon;
        $this->assertEquals($expected, $result);
    }