/**
  * clean up temp files
  *
  * @access public
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     if (file_exists($this->file)) {
         @unlink($this->file);
     }
 }
示例#2
0
 /**
  * tearDown
  *
  * @access protected
  * @return mixed
  */
 protected function tearDown()
 {
     parent::tearDown();
     if (isset($this->driver)) {
         $this->driver->clean();
     }
     if (file_exists($this->sourceFile)) {
         @unlink($this->sourceFile);
     }
     if (file_exists($this->testFile)) {
         @unlink($this->testFile);
     }
 }
 protected function tearDown()
 {
     parent::tearDown();
     if ($this->files->exists($this->path)) {
         $this->files->remove($this->path);
     }
 }