コード例 #1
0
 /**
  * Destroys the temporary paths.
  */
 protected function tearDown()
 {
     $this->builder = null;
     if (file_exists($this->builderFile)) {
         Utility::remove($this->builderFile);
     }
     if (file_exists($this->dir)) {
         Utility::remove($this->dir);
     }
 }
コード例 #2
0
ファイル: ExtractTest.php プロジェクト: box-project/builder
 /**
  * Destroys the test archive file.
  */
 protected function tearDown()
 {
     foreach ($this->paths as $path) {
         if (file_exists($path)) {
             Utility::remove($path);
         }
     }
 }
コード例 #3
0
 /**
  * Destroys the temporary configuration directory.
  */
 protected function tearDown()
 {
     if (file_exists($this->dir)) {
         Utility::remove($this->dir);
     }
 }
コード例 #4
0
ファイル: CommandTestCase.php プロジェクト: bangpound/console
 /**
  * Cleans up the test container and application instance.
  */
 protected function tearDown()
 {
     $this->application = null;
     $this->container = null;
     if (file_exists($this->configDir)) {
         Utility::remove($this->configDir);
     }
 }