本文整理汇总了PHP中Jsor\Doctrine\PostGIS\AbstractFunctionalTestCase类的典型用法代码示例。如果您正苦于以下问题:PHP AbstractFunctionalTestCase类的具体用法?PHP AbstractFunctionalTestCase怎么用?PHP AbstractFunctionalTestCase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AbstractFunctionalTestCase类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
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();
}
示例2: tearDown
protected function tearDown()
{
parent::tearDown();
$this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_points_drop.sql');
}