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


PHP PHPUnit_Extensions_Database_TestCase::tearDown方法代码示例

本文整理汇总了PHP中PHPUnit_Extensions_Database_TestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_Extensions_Database_TestCase::tearDown方法的具体用法?PHP PHPUnit_Extensions_Database_TestCase::tearDown怎么用?PHP PHPUnit_Extensions_Database_TestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PHPUnit_Extensions_Database_TestCase的用法示例。


在下文中一共展示了PHPUnit_Extensions_Database_TestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->conn->close();
     $this->conn = null;
     self::$pdo = null;
 }
开发者ID:gmo,项目名称:database,代码行数:7,代码来源:AbstractDatabaseTestCase.php

示例2: tearDown

 protected function tearDown()
 {
     for ($i = 1; $i < self::$connPointer; $i++) {
         unlink(__DIR__ . DIRECTORY_SEPARATOR . 'test' . $i . '.sqlite');
     }
     self::$connPointer = 0;
     parent::tearDown();
 }
开发者ID:dreamblazenet,项目名称:crazydatamapper,代码行数:8,代码来源:MultiDatabaseTestCase.php

示例3: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     // Close all database connections from this test
     if (!empty($this->db_connections)) {
         foreach ($this->db_connections as $db) {
             $db->sql_close();
         }
     }
 }
开发者ID:Voxel37,项目名称:phpbb,代码行数:10,代码来源:phpbb_database_test_case.php

示例4: tearDown

 public function tearDown()
 {
     $allTables = $this->getDataSet($this->fixtures)->getTableNames();
     foreach ($allTables as $table) {
         // drop table
         $conn = $this->getConnection();
         $pdo = $conn->getConnection();
         $pdo->exec("DROP TABLE IF EXISTS `{$table}`;");
     }
     parent::tearDown();
 }
开发者ID:hochla-simon,项目名称:Pitter,代码行数:11,代码来源:FixtureTestCase.php

示例5: tearDown

 public function tearDown()
 {
     $conn = $this->getConnection();
     $pdo = $conn->getConnection();
     $pdo->exec("DROP TABLE IF EXISTS `tags`;");
     $pdo->exec("DROP TABLE IF EXISTS `metadata`;");
     $pdo->exec("DROP TABLE IF EXISTS `images`;");
     $pdo->exec("DROP TABLE IF EXISTS `users`;");
     $pdo->exec("DROP TABLE IF EXISTS `albums`;");
     parent::tearDown();
 }
开发者ID:hochla-simon,项目名称:Pitter,代码行数:11,代码来源:FixturePitterCase.php

示例6: tearDown

 public function tearDown()
 {
     if (count($this->tables)) {
         foreach ($this->tables as $table) {
             // drop table
             $conn = $this->getConnection();
             $pdo = $conn->getConnection();
             $pdo->exec("DROP TABLE IF EXISTS `{$table}`;");
         }
     }
     $allTables = $this->getDataSet($this->fixtures)->getTableNames();
     foreach ($allTables as $table) {
         // drop table
         $conn = $this->getConnection();
         $pdo = $conn->getConnection();
         $pdo->exec("DROP TABLE IF EXISTS `{$table}`;");
     }
     $db = Loader::db();
     $db->getEntityManager()->clear();
     parent::tearDown();
 }
开发者ID:meixelsberger,项目名称:concrete5-5.7.0,代码行数:21,代码来源:ConcreteDatabaseTestCase.php

示例7: tearDown

 /**
  * tearDown after each tests
  */
 public function tearDown()
 {
     parent::tearDown();
 }
开发者ID:pauljenny,项目名称:ginger,代码行数:7,代码来源:ginger.test.php

示例8: tearDown

 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated SenditTest::tearDown()
     $this->Sendit = null;
     parent::tearDown();
 }
开发者ID:nicodiaz,项目名称:sendit,代码行数:9,代码来源:SenditTest.php

示例9: tearDown

 /**
  * Restores the original environment overriden with setEnvironment()
  *
  * Extending classes that have their own tearDown()
  * should call parent::tearDown()
  */
 public function tearDown()
 {
     $this->_helpers->restore_environment();
     return parent::tearDown();
 }
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:11,代码来源:TestCase.php

示例10: tearDown

 /**
  * @inheritdoc
  */
 protected function tearDown()
 {
     parent::tearDown();
     FileHelper::removeDirectory(__DIR__ . '/upload');
 }
开发者ID:ivan1911,项目名称:yii2-upload-behavior,代码行数:8,代码来源:DatabaseTestCase.php

示例11: tearDown

 protected function tearDown()
 {
     $this->getDI()->reset();
     parent::tearDown();
 }
开发者ID:nejtr0n,项目名称:incubator,代码行数:5,代码来源:DBUnitTestCase.php

示例12: tearDown

	public function tearDown()
	{
		DB::rollback();
		parent::tearDown();
		self::$_oldDataset = $this->_dataset;
	}
开发者ID:nathansamson,项目名称:CoOrg,代码行数:6,代码来源:model.test.class.php

示例13: tearDown

 public function tearDown()
 {
     $this->dropTable();
     parent::tearDown();
 }
开发者ID:inetprocess,项目名称:neuralyzer,代码行数:5,代码来源:ConfigurationDB.php

示例14: tearDown

 public function tearDown()
 {
     // Shutdown the kernel.
     $this->kernel->shutdown();
     parent::tearDown();
 }
开发者ID:heristop,项目名称:HeriJobQueueBundle,代码行数:6,代码来源:TestCase.php

示例15: tearDown

 public function tearDown()
 {
     parent::tearDown();
     unlink($this->filename);
 }
开发者ID:noseglid,项目名称:phpa,代码行数:5,代码来源:DatabaseTest.php


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