Changeset 61212
- Timestamp:
- 11/11/2025 01:31:30 PM (3 weeks ago)
- Location:
- trunk/tests/phpunit/tests/filesystem
- Files:
-
- 2 edited
-
unzipFilePclzip.php (modified) (2 diffs)
-
unzipFileZiparchive.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/filesystem/unzipFilePclzip.php
r56971 r61212 42 42 // Prepare test environment. 43 43 $unzip_destination = self::$test_data_dir . 'archive/'; 44 if ( file_exists( $unzip_destination ) ) { 45 $this->rmdir( $unzip_destination ); 46 $this->delete_folders( $unzip_destination ); 47 } 44 48 mkdir( $unzip_destination ); 45 49 46 50 _unzip_file_pclzip( self::$test_data_dir . 'archive.zip', $unzip_destination ); 47 51 48 // Clean up test environment.52 // Clean up test environment. 49 53 $this->rmdir( $unzip_destination ); 50 54 $this->delete_folders( $unzip_destination ); … … 64 68 // Prepare test environment. 65 69 $unzip_destination = self::$test_data_dir . 'archive/'; 70 if ( file_exists( $unzip_destination ) ) { 71 $this->rmdir( $unzip_destination ); 72 $this->delete_folders( $unzip_destination ); 73 } 66 74 mkdir( $unzip_destination ); 67 75 68 76 _unzip_file_pclzip( self::$test_data_dir . 'archive.zip', $unzip_destination ); 69 77 70 // Clean up test environment.78 // Clean up test environment. 71 79 $this->rmdir( $unzip_destination ); 72 80 $this->delete_folders( $unzip_destination ); -
trunk/tests/phpunit/tests/filesystem/unzipFileZiparchive.php
r56971 r61212 46 46 // Prepare test environment. 47 47 $unzip_destination = self::$test_data_dir . 'archive/'; 48 if ( file_exists( $unzip_destination ) ) { 49 $this->rmdir( $unzip_destination ); 50 $this->delete_folders( $unzip_destination ); 51 } 48 52 mkdir( $unzip_destination ); 49 53 50 54 _unzip_file_ziparchive( self::$test_data_dir . 'archive.zip', $unzip_destination ); 51 55 52 // Clean up test environment.56 // Clean up test environment. 53 57 $this->rmdir( $unzip_destination ); 54 58 $this->delete_folders( $unzip_destination ); … … 72 76 // Prepare test environment. 73 77 $unzip_destination = self::$test_data_dir . 'archive/'; 78 if ( file_exists( $unzip_destination ) ) { 79 $this->rmdir( $unzip_destination ); 80 $this->delete_folders( $unzip_destination ); 81 } 74 82 mkdir( $unzip_destination ); 75 83 76 84 _unzip_file_ziparchive( self::$test_data_dir . 'archive.zip', $unzip_destination ); 77 85 78 // Clean up test environment.86 // Clean up test environment. 79 87 $this->rmdir( $unzip_destination ); 80 88 $this->delete_folders( $unzip_destination );
Note: See TracChangeset
for help on using the changeset viewer.