tearDown() protected method

Performs operation returned by getSetUpOperation().
protected tearDown ( )
 protected function tearDown()
 {
     parent::tearDown();
     $this->conn->close();
     $this->conn = null;
     self::$pdo = null;
 }
 protected function tearDown()
 {
     for ($i = 1; $i < self::$connPointer; $i++) {
         unlink(__DIR__ . DIRECTORY_SEPARATOR . 'test' . $i . '.sqlite');
     }
     self::$connPointer = 0;
     parent::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();
         }
     }
 }
 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();
 }
 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();
 }
 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();
 }
Beispiel #7
0
 /**
  * tearDown after each tests
  */
 public function tearDown()
 {
     parent::tearDown();
 }
Beispiel #8
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated SenditTest::tearDown()
     $this->Sendit = null;
     parent::tearDown();
 }
Beispiel #9
0
 /**
  * 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();
 }
 /**
  * @inheritdoc
  */
 protected function tearDown()
 {
     parent::tearDown();
     FileHelper::removeDirectory(__DIR__ . '/upload');
 }
Beispiel #11
0
 protected function tearDown()
 {
     $this->getDI()->reset();
     parent::tearDown();
 }
Beispiel #12
0
	public function tearDown()
	{
		DB::rollback();
		parent::tearDown();
		self::$_oldDataset = $this->_dataset;
	}
 public function tearDown()
 {
     $this->dropTable();
     parent::tearDown();
 }
 public function tearDown()
 {
     // Shutdown the kernel.
     $this->kernel->shutdown();
     parent::tearDown();
 }
Beispiel #15
0
 public function tearDown()
 {
     parent::tearDown();
     unlink($this->filename);
 }
Beispiel #16
0
 public function tearDown()
 {
     foreach ($this->tempHandles as $tempHandle) {
         if (is_resource($tempHandle)) {
             fclose($tempHandle);
         }
     }
     $this->emptyConfig = null;
     $this->adapter = null;
     parent::tearDown();
 }
 public function tearDown()
 {
     if (count($this->tables)) {
         if (in_array('BlockTypes', $this->tables)) {
             $this->tables[] = 'btCoreScrapbookDisplay';
         }
         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();
     \CacheLocal::flush();
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     $this->myDConn = null;
 }
	/**
	 * Free resources - reset static DB and QueryParser
	 *
	 * @author Corina Udrescu (dev@xpressengine.org)
	 */
	protected function tearDown()
	{
		unset($GLOBALS['__DB__']);

		parent::tearDown();
	}
Beispiel #20
0
 protected function tearDown()
 {
     $this->pdo = null;
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->destroyApplication();
 }
 protected function tearDown()
 {
     $this->pdo = null;
     $this->stopFakemail();
     parent::tearDown();
 }
 public function tearDown()
 {
     //always remove the dataset
     $dataset = $this->_data_set;
     $this->_db_remove_rows($dataset);
     parent::tearDown();
 }
Beispiel #24
0
 public function tearDown()
 {
     Di::reset();
     parent::tearDown();
 }
Beispiel #25
0
 public function tearDown()
 {
     parent::tearDown();
     unset($this->obj, $this->post_data);
 }
Beispiel #26
0
 public function tearDown()
 {
     //always remove the dataset
     $dataset = $this->_data_set;
     foreach ($dataset as $table => $row) {
         $this->truncate($table);
     }
     parent::tearDown();
 }
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @access protected
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
Beispiel #28
0
 /**
  * (non-PHPdoc)
  * @see PHPUnit_Extensions_Database_TestCase::tearDown()
  */
 protected function tearDown()
 {
     $this->destroyApplication();
     parent::tearDown();
 }