本文整理匯總了PHP中Jsor\Doctrine\PostGIS\AbstractFunctionalTestCase::setUp方法的典型用法代碼示例。如果您正苦於以下問題:PHP AbstractFunctionalTestCase::setUp方法的具體用法?PHP AbstractFunctionalTestCase::setUp怎麽用?PHP AbstractFunctionalTestCase::setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Jsor\Doctrine\PostGIS\AbstractFunctionalTestCase
的用法示例。
在下文中一共展示了AbstractFunctionalTestCase::setUp方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setUp
protected function setUp()
{
parent::setUp();
$this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_points_drop.sql');
$this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_points_create.sql');
$this->sm = $this->_getConnection()->getSchemaManager();
}
示例2: setUp
protected function setUp()
{
parent::setUp();
$this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_points_drop.sql');
$this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_points_create.sql');
$this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_reserved-words_drop.sql');
$this->_execFile('postgis-' . getenv('POSTGIS_VERSION') . '_reserved-words_create.sql');
}
示例3: 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();
}