WordPress.org

Make WordPress Core

Changeset 31953


Ignore:
Timestamp:
04/01/2015 12:33:39 PM (7 years ago)
Author:
pento
Message:

WPDB: Due to PHP 5.2's internal string handling, strings in Windows are encoded using UTF-16, instead of UTF-8. With the addition of the many character set tests in [30345], a couple of them were tripping up in PHP 5.2 under Windows, because of this behaviour.

This marks those tests as skipped.

See #31262 for more discussion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/db/charset.php

    r31372 r31953  
    123123     */
    124124    function test_strip_invalid_text( $data, $expected, $message ) {
     125        if ( version_compare( PHP_VERSION, '5.3', '<') && stristr( php_uname( 's' ), 'win' ) ) {
     126            $this->markTestSkipped( 'This test fails in PHP 5.2 on Windows. See https://core.trac.wordpress.org/ticket/31262' );
     127        }
     128
    125129        $actual = self::$_wpdb->strip_invalid_text( $data );
    126130        $this->assertSame( $expected, $actual, $message );
Note: See TracChangeset for help on using the changeset viewer.