/** * Avoid impact of initialized \Magento\Framework\Code\Generator\Autoloader on other tests */ public static function tearDownAfterClass() { foreach (spl_autoload_functions() as $autoloadFunction) { spl_autoload_unregister($autoloadFunction); } foreach (self::$originalAutoloadFunctions as $autoloadFunction) { spl_autoload_register($autoloadFunction); } set_include_path(self::$originalIncludePath); \Magento\Framework\Filesystem\Io\File::rmdirRecursive(__DIR__ . '/_files/var/'); }
/** * @param string $path * @return void */ public function delete($path) { df_param_string_not_empty($path, 0); \Magento\Framework\Filesystem\Io\File::rmdirRecursive($path); }