當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。