tearDown() protected method

Performs operation returned by getSetUpOperation().
protected tearDown ( )
Esempio n. 1
0
 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();
 }
Esempio n. 3
0
 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();
         }
     }
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 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();
 }
Esempio n. 7
0
 /**
  * tearDown after each tests
  */
 public function tearDown()
 {
     parent::tearDown();
 }
Esempio n. 8
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     // TODO Auto-generated SenditTest::tearDown()
     $this->Sendit = null;
     parent::tearDown();
 }
Esempio n. 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');
 }
Esempio n. 11
0
 protected function tearDown()
 {
     $this->getDI()->reset();
     parent::tearDown();
 }
Esempio n. 12
0
	public function tearDown()
	{
		DB::rollback();
		parent::tearDown();
		self::$_oldDataset = $this->_dataset;
	}
Esempio n. 13
0
 public function tearDown()
 {
     $this->dropTable();
     parent::tearDown();
 }
Esempio n. 14
0
 public function tearDown()
 {
     // Shutdown the kernel.
     $this->kernel->shutdown();
     parent::tearDown();
 }
Esempio n. 15
0
 public function tearDown()
 {
     parent::tearDown();
     unlink($this->filename);
 }
Esempio n. 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();
	}
Esempio n. 20
0
 protected function tearDown()
 {
     $this->pdo = null;
     parent::tearDown();
 }
Esempio n. 21
0
 public function tearDown()
 {
     parent::tearDown();
     $this->destroyApplication();
 }
Esempio n. 22
0
 protected function tearDown()
 {
     $this->pdo = null;
     $this->stopFakemail();
     parent::tearDown();
 }
Esempio n. 23
0
 public function tearDown()
 {
     //always remove the dataset
     $dataset = $this->_data_set;
     $this->_db_remove_rows($dataset);
     parent::tearDown();
 }
Esempio n. 24
0
 public function tearDown()
 {
     Di::reset();
     parent::tearDown();
 }
Esempio n. 25
0
 public function tearDown()
 {
     parent::tearDown();
     unset($this->obj, $this->post_data);
 }
Esempio n. 26
0
 public function tearDown()
 {
     //always remove the dataset
     $dataset = $this->_data_set;
     foreach ($dataset as $table => $row) {
         $this->truncate($table);
     }
     parent::tearDown();
 }
Esempio n. 27
0
 /**
  * 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();
 }
Esempio n. 28
0
 /**
  * (non-PHPdoc)
  * @see PHPUnit_Extensions_Database_TestCase::tearDown()
  */
 protected function tearDown()
 {
     $this->destroyApplication();
     parent::tearDown();
 }