Changeset 48464 for trunk/tests/phpunit/includes/abstract-testcase.php
- Timestamp:
- 07/14/2020 01:28:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/abstract-testcase.php
r47880 r48464 914 914 $tmp_dir = ''; 915 915 $dirs = array( 'TMP', 'TMPDIR', 'TEMP' ); 916 916 917 foreach ( $dirs as $dir ) { 917 918 if ( isset( $_ENV[ $dir ] ) && ! empty( $_ENV[ $dir ] ) ) { … … 920 921 } 921 922 } 923 922 924 if ( empty( $tmp_dir ) ) { 923 $tmp_dir = '/tmp'; 924 } 925 $tmp_dir = get_temp_dir(); 926 } 927 925 928 $tmp_dir = realpath( $tmp_dir ); 929 926 930 return tempnam( $tmp_dir, 'wpunit' ); 927 931 }
Note: See TracChangeset
for help on using the changeset viewer.