Changeset 49025 for trunk/tests/phpunit/tests/functions.php
- Timestamp:
- 09/21/2020 01:25:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions.php
r48937 r49025 943 943 /** 944 944 * @ticket 28786 945 * @requires function mb_detect_order 945 946 */ 946 947 function test_wp_json_encode_non_utf8() { 947 if ( ! function_exists( 'mb_detect_order' ) ) {948 $this->markTestSkipped( 'mbstring extension not available.' );949 }950 951 948 $charsets = mb_detect_order(); 952 949 $old_charsets = $charsets; … … 968 965 /** 969 966 * @ticket 28786 967 * @requires function mb_detect_order 970 968 */ 971 969 function test_wp_json_encode_non_utf8_in_array() { 972 if ( ! function_exists( 'mb_detect_order' ) ) {973 $this->markTestSkipped( 'mbstring extension not available.' );974 }975 976 970 $charsets = mb_detect_order(); 977 971 $old_charsets = $charsets; … … 1211 1205 * @ticket 39550 1212 1206 * @dataProvider _wp_check_filetype_and_ext_data 1207 * @requires extension fileinfo 1213 1208 */ 1214 1209 function test_wp_check_filetype_and_ext( $file, $filename, $expected ) { 1215 if ( ! extension_loaded( 'fileinfo' ) ) {1216 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );1217 }1218 1219 1210 $this->assertSame( $expected, wp_check_filetype_and_ext( $file, $filename ) ); 1220 1211 } … … 1223 1214 * @ticket 39550 1224 1215 * @group ms-excluded 1216 * @requires extension fileinfo 1225 1217 */ 1226 1218 function test_wp_check_filetype_and_ext_with_filtered_svg() { 1227 if ( ! extension_loaded( 'fileinfo' ) ) {1228 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );1229 }1230 1231 1219 $file = DIR_TESTDATA . '/uploads/video-play.svg'; 1232 1220 $filename = 'video-play.svg'; … … 1248 1236 * @ticket 39550 1249 1237 * @group ms-excluded 1238 * @requires extension fileinfo 1250 1239 */ 1251 1240 function test_wp_check_filetype_and_ext_with_filtered_woff() { 1252 if ( ! extension_loaded( 'fileinfo' ) ) {1253 $this->markTestSkipped( 'The fileinfo PHP extension is not loaded.' );1254 }1255 1256 1241 $file = DIR_TESTDATA . '/uploads/dashicons.woff'; 1257 1242 $filename = 'dashicons.woff';
Note: See TracChangeset
for help on using the changeset viewer.