From a3f37173b732fdff9c894b039678184f6e986834 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 31 Oct 2022 20:26:47 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/branches/6.1@54732 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index 7e8c711bbd..ea7488a5d9 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -1404,14 +1404,14 @@ class Tests_Functions extends WP_UnitTestCase { * @requires extension fileinfo */ public function test_wp_check_filetype_and_ext_with_filtered_woff() { - if ( PHP_VERSION_ID >= 80200 ) { + if ( PHP_VERSION_ID >= 80100 ) { /* - * For the time being, this test is marked skipped on PHP 8.2 as a recent change introduced + * For the time being, this test is marked skipped on PHP 8.1+ as a recent change introduced * an inconsistency with how the mime-type for WOFF files are handled compared to older versions. * * See https://core.trac.wordpress.org/ticket/56817 for more details. */ - $this->markTestSkipped( 'This test currently fails on PHP 8.2RC3 and requires further investigation.' ); + $this->markTestSkipped( 'This test currently fails on PHP 8.1+ and requires further investigation.' ); } $file = DIR_TESTDATA . '/uploads/dashicons.woff';