Sokil\Mongo\DocumentGeoTest::testSetLineString PHP Method

testSetLineString() public method

public testSetLineString ( )
    public function testSetLineString()
    {
        $documentId = $this->collection->createDocument()->setLineString('location', array(array(30.523400000000038, 50.4501), array(24.012228, 49.831485), array(36.230376, 49.993499)))->save()->getId();
        $this->assertEquals(array('type' => 'LineString', 'coordinates' => array(array(30.523400000000038, 50.4501), array(24.012228, 49.831485), array(36.230376, 49.993499))), $this->collection->getDocument($documentId)->get('location'));
    }