Make WordPress Core

Changeset 54732


Ignore:
Timestamp:
10/31/2022 08:26:47 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Tests: Temporarily skip WOFF file test on PHP 8.1.

A recent change to how WOFF files are processed in PHP 8.2 RC3 has caused a new test failure.

The tests was previously skipped on PHP 8.2, however, apparently after a fileinfo extension update, it started failing on PHP 8.1 too.

This commit adjusts the skipping condition to include PHP 8.1.

Follow-up to [54508], [54509].

Reviewed by desrosj, SergeyBiryukov.
Merges [54724] to the 6.1 branch.
See #56817.

Location:
branches/6.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.1

  • branches/6.1/tests/phpunit/tests/functions.php

    r54713 r54732  
    14051405     */
    14061406    public function test_wp_check_filetype_and_ext_with_filtered_woff() {
    1407         if ( PHP_VERSION_ID >= 80200 ) {
     1407        if ( PHP_VERSION_ID >= 80100 ) {
    14081408            /*
    1409              * For the time being, this test is marked skipped on PHP 8.2 as a recent change introduced
     1409             * For the time being, this test is marked skipped on PHP 8.1+ as a recent change introduced
    14101410             * an inconsistency with how the mime-type for WOFF files are handled compared to older versions.
    14111411             *
    14121412             * See https://core.trac.wordpress.org/ticket/56817 for more details.
    14131413             */
    1414             $this->markTestSkipped( 'This test currently fails on PHP 8.2RC3 and requires further investigation.' );
     1414            $this->markTestSkipped( 'This test currently fails on PHP 8.1+ and requires further investigation.' );
    14151415        }
    14161416
Note: See TracChangeset for help on using the changeset viewer.