WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2015 08:54:52 AM (5 years ago)
Author:
dd32
Message:

Skip two wp_json_encode() tests when mbstring is unavailable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions.php

    r34474 r34771  
    604604     */
    605605    function test_wp_json_encode_non_utf8() {
     606        if ( ! function_exists( 'mb_detect_order' ) ) {
     607            $this->markTestSkipped( 'mbstring extension not available.' );
     608        }
     609   
    606610        $old_charsets = $charsets = mb_detect_order();
    607611        if ( ! in_array( 'EUC-JP', $charsets ) ) {
     
    624628     */
    625629    function test_wp_json_encode_non_utf8_in_array() {
     630        if ( ! function_exists( 'mb_detect_order' ) ) {
     631            $this->markTestSkipped( 'mbstring extension not available.' );
     632        }
     633
    626634        $old_charsets = $charsets = mb_detect_order();
    627635        if ( ! in_array( 'EUC-JP', $charsets ) ) {
Note: See TracChangeset for help on using the changeset viewer.