WordPress.org

Make WordPress Core

Changeset 1075 in tests


Ignore:
Timestamp:
10/05/12 12:15:22 (19 months ago)
Author:
SergeyBiryukov
Message:

Fix parse errors in PHP 5.2. see [1061].

Location:
trunk/tests/image
Files:
2 edited

Legend:

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

    r1061 r1075  
    114114             
    115115            // If the image editor isn't available, skip it 
    116             if ( !$class::test() ) { 
     116            if ( ! call_user_func( array( $class, 'test' ) ) ) { 
    117117                continue; 
    118118            } 
     
    152152 
    153153            // If the image editor isn't available, skip it 
    154             if ( !$class::test() ) { 
     154            if ( ! call_user_func( array( $class, 'test' ) ) ) { 
    155155                continue; 
    156156            } 
     
    197197 
    198198            // If the image editor isn't available, skip it 
    199             if ( !$class::test() ) { 
     199            if ( ! call_user_func( array( $class, 'test' ) ) ) { 
    200200                continue; 
    201201            } 
  • trunk/tests/image/resize.php

    r1063 r1075  
    131131        $classes = array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick'); 
    132132        foreach ( $classes as $class ) { 
    133             if ( !$class::test() ) { 
     133            if ( ! call_user_func( array( $class, 'test' ) ) ) { 
    134134                continue; 
    135135            } 
     
    149149        $classes = array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick'); 
    150150        foreach ( $classes as $class ) { 
    151             if ( !$class::test() ) { 
     151            if ( ! call_user_func( array( $class, 'test' ) ) ) { 
    152152                continue; 
    153153            } 
Note: See TracChangeset for help on using the changeset viewer.