Make WordPress Core


Ignore:
Timestamp:
10/30/2022 03:26:40 AM (13 months 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].

See #56817.

File:
1 edited

Legend:

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

    r54712 r54724  
    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.