Make WordPress Core


Ignore:
Timestamp:
01/24/2018 04:20:26 AM (9 years ago)
Author:
dd32
Message:

Tests: Skip newly added tests from [42581] on PHP 5.2 as they require ReflectionMethod.

See #42860.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/query.php

    r42581 r42585  
    648648         */
    649649        public function test_set_found_posts_fields_posts_is_string() {
     650                if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
     651                        $this->markTestSkipped( 'ReflectionMethod::setAccessible is only available in PHP 5.3+' );
     652                        return;
     653                }
     654
    650655                $q = new WP_Query(
    651656                        array(
     
    668673         */
    669674        public function test_set_found_posts_fields_posts_is_null() {
     675                if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
     676                        $this->markTestSkipped( 'ReflectionMethod::setAccessible is only available in PHP 5.3+' );
     677                        return;
     678                }
     679
    670680                $q = new WP_Query(
    671681                        array(
Note: See TracChangeset for help on using the changeset viewer.