Пример #1
0
 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     parent::tearDown();
     if (file_exists($this->fileName)) {
         unlink($this->fileName);
     }
 }
Пример #2
0
 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     parent::tearDown();
     if (file_exists(self::$backupFile)) {
         unlink(self::$backupFile);
     }
     if (file_exists($this->tmpDir . 'extracted')) {
         (new Filesystem())->remove([$this->tmpDir . 'extracted']);
     }
 }
Пример #3
0
 /**
  * Tears down the fixture, for example, close a network connection.
  * This method is called after a test is executed.
  */
 protected function tearDown()
 {
     parent::tearDown();
     unset($this->manager);
     if (file_exists($this->filesZipPath)) {
         unlink($this->filesZipPath);
     }
     if (file_exists($this->tmpDir . 'extracted')) {
         (new Filesystem())->remove([$this->tmpDir . 'extracted']);
     }
     if (file_exists($this->tmpDir . $this->updateClassName . '.php')) {
         unlink($this->tmpDir . $this->updateClassName . '.php');
     }
     if (file_exists($this->updateDir . 'Update.phar')) {
         unlink($this->updateDir . 'Update.phar');
     }
 }