/**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  *
  * @return  void
  */
 protected function tearDown()
 {
     $this->restoreFactoryState();
     if ($this->handler instanceof JCacheStorage) {
         // Deprecated, temporary have to stay because flush method is not implemented in all storages.
         $this->handler->clean($this->group);
         $this->handler->flush();
     }
     parent::tearDown();
 }