CrEOF\Spatial\Tests\PHP\Types\Spatial\Geometry\MultiPointTest::testMultiPointFromObjectsToArray PHP Метод

testMultiPointFromObjectsToArray() публичный Метод

    public function testMultiPointFromObjectsToArray()
    {
        $expected = array(array(0, 0), array(1, 1), array(2, 2), array(3, 3));
        $multiPoint = new MultiPoint(array(new Point(0, 0), new Point(1, 1), new Point(2, 2), new Point(3, 3)));
        $this->assertCount(4, $multiPoint->getPoints());
        $this->assertEquals($expected, $multiPoint->toArray());
    }