Changeset 45607 for trunk/tests/phpunit/tests/functions.php
- Timestamp:
- 07/08/2019 12:55:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions.php
r45602 r45607 845 845 $charsets = mb_detect_order(); 846 846 $old_charsets = $charsets; 847 if ( ! in_array( 'EUC-JP', $charsets ) ) {847 if ( ! in_array( 'EUC-JP', $charsets, true ) ) { 848 848 $charsets[] = 'EUC-JP'; 849 849 mb_detect_order( $charsets ); … … 870 870 $charsets = mb_detect_order(); 871 871 $old_charsets = $charsets; 872 if ( ! in_array( 'EUC-JP', $charsets ) ) {872 if ( ! in_array( 'EUC-JP', $charsets, true ) ) { 873 873 $charsets[] = 'EUC-JP'; 874 874 mb_detect_order( $charsets ); … … 966 966 $extensions = wp_get_ext_types(); 967 967 968 foreach ( $extensions as $type => $extension List ) {969 foreach ( $extension List as $extension ) {968 foreach ( $extensions as $type => $extension_list ) { 969 foreach ( $extension_list as $extension ) { 970 970 $this->assertEquals( $type, wp_ext2type( $extension ) ); 971 971 $this->assertEquals( $type, wp_ext2type( strtoupper( $extension ) ) );
Note: See TracChangeset
for help on using the changeset viewer.