本文整理汇总了PHP中Doctrine\Tests\OrmFunctionalTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP OrmFunctionalTestCase::tearDown方法的具体用法?PHP OrmFunctionalTestCase::tearDown怎么用?PHP OrmFunctionalTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Doctrine\Tests\OrmFunctionalTestCase
的用法示例。
在下文中一共展示了OrmFunctionalTestCase::tearDown方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
if ($this->_em) {
$this->_em->getConfiguration()->setEntityNamespaces(array());
}
parent::tearDown();
}
示例2: tearDown
public function tearDown()
{
parent::tearDown();
$class = $this->_em->getClassMetadata('Doctrine\\Tests\\Models\\CMS\\CmsUser');
$class->associationMappings['groups']['fetch'] = ClassMetadataInfo::FETCH_LAZY;
$class->associationMappings['articles']['fetch'] = ClassMetadataInfo::FETCH_LAZY;
}
示例3: tearDown
/**
* {@inheritdoc}
*/
protected function tearDown()
{
parent::tearDown();
$connection = $this->_em->getConnection();
$platform = $connection->getDatabasePlatform();
// drop sequence manually due to dependency
$connection->exec($platform->getDropSequenceSQL(new Sequence($platform->getIdentitySequenceName('seq_identity', 'id'))));
}
示例4: tearDown
public function tearDown()
{
parent::tearDown();
$class = $this->_em->getClassMetadata('Doctrine\\Tests\\Models\\Legacy\\LegacyUser');
$class->associationMappings['_articles']['fetch'] = ClassMetadataInfo::FETCH_LAZY;
$class->associationMappings['_references']['fetch'] = ClassMetadataInfo::FETCH_LAZY;
$class->associationMappings['_cars']['fetch'] = ClassMetadataInfo::FETCH_LAZY;
}
示例5: tearDown
protected function tearDown()
{
parent::tearDown();
$conn = static::$_sharedConn;
$this->_sqlLoggerStack->enabled = false;
// $conn->executeUpdate('DELETE FROM Media_Audio');
// $conn->executeUpdate('DELETE FROM Media_Video');
$this->_em->clear();
}
示例6: tearDown
protected function tearDown()
{
parent::tearDown();
$conn = static::$_sharedConn;
$this->_sqlLoggerStack->enabled = false;
$conn->executeUpdate('DELETE FROM ApproxDateEntity');
$conn->executeUpdate('DELETE FROM GenderEntity');
$this->_em->clear();
}
示例7: tearDown
/**
* @inheritdoc
*/
public function tearDown()
{
$dirs = array();
$ri = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->path));
foreach ($ri as $file) {
/* @var $file \SplFileInfo */
if ($file->isFile()) {
\unlink($file->getPathname());
} elseif ($file->getBasename() === '.') {
$dirs[] = $file->getRealpath();
}
}
arsort($dirs);
foreach ($dirs as $dir) {
\rmdir($dir);
}
parent::tearDown();
}
示例8: tearDown
public function tearDown()
{
$this->_em->getMetadataFactory()->setMetadataFor('Doctrine\\Tests\\Models\\Company\\CompanyEmployee', $this->oldMetadata);
parent::tearDown();
}
示例9: tearDown
/**
* @throws UnsupportedPlatformException
*/
protected function tearDown()
{
parent::tearDown();
$this->_sqlLoggerStack->enabled = false;
$this->tearDownCommonEntities();
switch ($this->platformName) {
case 'postgresql':
$this->tearDownPostgreSql();
break;
case 'mysql':
break;
default:
throw UnsupportedPlatformException::unsupportedPlatform($this->platformName);
break;
}
$this->_em->clear();
}
示例10: tearDown
protected function tearDown()
{
parent::tearDown();
// drop sequence manually due to dependency
$this->_em->getConnection()->exec('DROP SEQUENCE postgresqlidentityentity_id_seq CASCADE');
}
示例11: tearDown
protected function tearDown()
{
parent::tearDown();
$this->_schemaTool->dropSchema(array($this->_em->getClassMetadata(self::CLASS_NAME)));
}