/** * Removes temporary output files. * * @return void */ protected function tearDown() { if (file_exists($this->_out)) { unlink($this->_out); } parent::tearDown(); }
/** * Removes the temporary log files. * * @return void */ protected function tearDown() { @unlink($this->resultFile); parent::tearDown(); }
/** * Restores the original working directory. * * @return void */ protected function tearDown() { chdir($this->workingDir); parent::tearDown(); }
/** * 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(); }
/** * 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(); }