Ejemplo n.º 1
0
 /**
  * Removes temporary output files.
  *
  * @return void
  */
 protected function tearDown()
 {
     if (file_exists($this->_out)) {
         unlink($this->_out);
     }
     parent::tearDown();
 }
Ejemplo n.º 2
0
 /**
  * Removes the temporary log files.
  *
  * @return void
  */
 protected function tearDown()
 {
     @unlink($this->resultFile);
     parent::tearDown();
 }
Ejemplo n.º 3
0
 /**
  * Restores the original working directory.
  *
  * @return void
  */
 protected function tearDown()
 {
     chdir($this->workingDir);
     parent::tearDown();
 }
Ejemplo n.º 4
0
 /**
  * Restores the original include path.
  *
  * @return void
  */
 protected function tearDown()
 {
     set_include_path($this->includePath);
     foreach (spl_autoload_functions() as $callback) {
         if (is_array($callback) && $callback[0] instanceof PHP_Depend_Autoload) {
             spl_autoload_unregister($callback);
         }
     }
     parent::tearDown();
 }
Ejemplo n.º 5
0
 /**
  * Removes the temporary log files.
  *
  * @return void
  */
 protected function tearDown()
 {
     // Clear filter collection
     $collection = PHP_Depend_Code_Filter_Collection::getInstance();
     $collection->clear();
     @unlink($this->resultFile);
     parent::tearDown();
 }