Exemplo n.º 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);
     }
 }
Exemplo n.º 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']);
     }
 }
Exemplo n.º 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');
     }
 }
Exemplo n.º 4
0
 /**
  * Setup before each test.
  */
 public function setUp()
 {
     parent::setUp();
     $this->builder = new InteractiveFileBuilder(new ArrayInput([], NULL), new ConsoleOutput(), new QuestionHelper());
 }
Exemplo n.º 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();
 }