/**
  * 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);
     }
 }
Exemple #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']);
     }
 }
Exemple #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');
     }
 }
 /**
  * Setup before each test.
  */
 public function setUp()
 {
     parent::setUp();
     $this->builder = new InteractiveFileBuilder(new ArrayInput([], NULL), new ConsoleOutput(), new QuestionHelper());
 }
Exemple #5
0
 /**
  * Sets up the fixture, for example, open a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->provider = new GitProvider();
 }