Make WordPress Core

Ticket #31262: 31262.diff

File 31262.diff, 667 bytes (added by pento, 9 years ago)
  • tests/phpunit/tests/db/charset.php

     
    122122         * @ticket 21212
    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 );
    127131        }