Example #1
0
 /**
  * tearDownAfterClass
  *
  * @return  void
  */
 public static function tearDownAfterClass()
 {
     if (static::$dbo) {
         try {
             static::$dbo->setQuery(MysqlQueryBuilder::dropTable('#__cloud', true))->execute();
         } catch (\Exception $e) {
             // Do nothing
         }
         try {
             static::$dbo->setQuery(MysqlQueryBuilder::dropTable('#__wind', true))->execute();
         } catch (\Exception $e) {
             // Do nothing
         }
     }
     parent::tearDownAfterClass();
 }
Example #2
0
 /**
  * Tears down the fixture, for example, closes a network connection.
  * This method is called after a test is executed.
  *
  * @return void
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
Example #3
0
 /**
  * tearDownAfterClass
  *
  * @return  void
  */
 public static function tearDownAfterClass()
 {
     static::$dbo->setQuery(MysqlQueryBuilder::dropDatabase('windwalker_foo_test', true))->execute();
     static::$dbo->setQuery(MysqlQueryBuilder::dropDatabase('windwalker_bar_test', true))->execute();
     parent::tearDownAfterClass();
 }