当前位置: 首页>>代码示例>>PHP>>正文


PHP OrmFunctionalTestCase::tearDown方法代码示例

本文整理汇总了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();
 }
开发者ID:relo-san,项目名称:doctrine2,代码行数:7,代码来源:EntityRepositoryTest.php

示例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;
 }
开发者ID:pnaq57,项目名称:zf2demo,代码行数:7,代码来源:SQLFilterTest.php

示例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'))));
 }
开发者ID:selimcr,项目名称:servigases,代码行数:11,代码来源:SequenceEmulatedIdentityStrategyTest.php

示例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;
 }
开发者ID:Herriniaina,项目名称:iVarotra,代码行数:8,代码来源:DDC1301Test.php

示例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();
 }
开发者ID:creof,项目名称:doctrine2-namespace-namingstrategy,代码行数:9,代码来源:OrmTest.php

示例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();
 }
开发者ID:creof,项目名称:doctrine2-custom-types,代码行数:9,代码来源:OrmTest.php

示例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();
 }
开发者ID:selimcr,项目名称:servigases,代码行数:21,代码来源:GenerateRepositoriesCommandTest.php

示例8: tearDown

 public function tearDown()
 {
     $this->_em->getMetadataFactory()->setMetadataFor('Doctrine\\Tests\\Models\\Company\\CompanyEmployee', $this->oldMetadata);
     parent::tearDown();
 }
开发者ID:Herriniaina,项目名称:iVarotra,代码行数:5,代码来源:DDC168Test.php

示例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();
 }
开发者ID:raketman,项目名称:doctrine2-spatial,代码行数:20,代码来源:OrmTest.php

示例10: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     // drop sequence manually due to dependency
     $this->_em->getConnection()->exec('DROP SEQUENCE postgresqlidentityentity_id_seq CASCADE');
 }
开发者ID:Herriniaina,项目名称:iVarotra,代码行数:6,代码来源:PostgreSQLIdentityStrategyTest.php

示例11: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->_schemaTool->dropSchema(array($this->_em->getClassMetadata(self::CLASS_NAME)));
 }
开发者ID:selimcr,项目名称:servigases,代码行数:5,代码来源:DDC1719Test.php


注:本文中的Doctrine\Tests\OrmFunctionalTestCase::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。