Inheritance: extends Symfony\Bundle\FrameworkBundle\Test\WebTestCase
Example #1
0
 /**
  * @return void
  */
 protected function tearDown()
 {
     $fs = new Filesystem();
     // Clear the $_FILES
     $_FILES = [];
     // Remove the generated zip file
     if ($this->fileName !== null && file_exists("{$this->fileName}.zip")) {
         $fs->remove("{$this->fileName}.zip");
     }
     // Remove the uploaded theme folder
     $fs->remove(FRONTEND_PATH . '/Themes/' . self::THEME_NAME);
     $this->logout();
     parent::tearDown();
 }