Changeset 38843
- Timestamp:
- 10/20/2016 06:29:28 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/db/charset.php
r38382 r38843 15 15 protected static $_wpdb; 16 16 17 /** 18 * The version of the MySQL server. 19 * 20 * @var string 21 */ 22 private static $server_info; 23 17 24 public static function setUpBeforeClass() { 18 25 require_once( dirname( dirname( __FILE__ ) ) . '/db.php' ); 19 26 20 27 self::$_wpdb = new wpdb_exposed_methods_for_testing(); 28 29 if ( self::$_wpdb->use_mysqli ) { 30 self::$server_info = mysqli_get_server_info( self::$_wpdb->dbh ); 31 } else { 32 self::$server_info = mysql_get_server_info( self::$_wpdb->dbh ); 33 } 21 34 } 22 35 … … 362 375 if ( 'utf8mb4' === $new_charset && ! self::$_wpdb->has_cap( 'utf8mb4' ) ) { 363 376 $this->markTestSkipped( "The current MySQL server doesn't support the utf8mb4 character set." ); 377 } 378 379 if ( 'big5' === $new_charset && 'byte' === $data[0]['length']['type'] && false !== strpos( self::$server_info, 'MariaDB' ) ) { 380 $this->markTestSkipped( "MariaDB doesn't support this data set. See https://core.trac.wordpress.org/ticket/33171." ); 364 381 } 365 382
Note: See TracChangeset
for help on using the changeset viewer.