php Jsor-Doctrine-PostGIS-AbstractFunctionalTestCase类(方法)实例源码

下面列出了php Jsor-Doctrine-PostGIS-AbstractFunctionalTestCase 类(方法)源码代码实例,从而了解它的用法。

作者:novikovserge    项目:doctrine-postgi   
protected function setUp()
 {
     parent::setUp();
     $this->_setUpEntitySchema(array('Jsor\\Doctrine\\PostGIS\\PointsEntity'));
     $em = $this->_getEntityManager();
     $entity = new PointsEntity(array('text' => 'foo', 'geometry' => 'POINT(1 1)', 'point' => 'POINT(1 1)', 'point2D' => 'SRID=3785;POINT(1 1)', 'point3DZ' => 'SRID=3785;POINT(1 1 1)', 'point3DM' => 'SRID=3785;POINTM(1 1 1)', 'point4D' => 'SRID=3785;POINT(1 1 1 1)', 'point2DNullable' => null, 'point2DNoSrid' => 'POINT(1 1)', 'geography' => 'SRID=4326;POINT(1 1)', 'pointGeography2d' => 'SRID=4326;POINT(1 1)', 'pointGeography2dSrid' => 'POINT(1 1)'));
     $em->persist($entity);
     $em->flush();
     $em->clear();
 }

作者:novikovserge    项目:doctrine-postgi   
protected function tearDown()
 {
     parent::tearDown();
     $this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_points_drop.sql');
 }


问题


面经


文章

微信
公众号

扫码关注公众号