PhpOffice\PhpPresentation\Tests\TestHelperDOCX::clear PHP Method

clear() public static method

Clear document
public static clear ( )
    public static function clear()
    {
        if (file_exists(self::$file)) {
            unlink(self::$file);
        }
        if (is_dir(sys_get_temp_dir() . '/PhpPresentation_Unit_Test/')) {
            self::deleteDir(sys_get_temp_dir() . '/PhpPresentation_Unit_Test/');
        }
    }

Usage Example

 /**
  * Executed before each method of the class
  */
 public function tearDown()
 {
     TestHelperDOCX::clear();
 }
All Usage Examples Of PhpOffice\PhpPresentation\Tests\TestHelperDOCX::clear