Skip to content

Commit 45c6b78

Browse files
committed
Skip tests for GD on PHP < 8.1
1 parent 12f04a2 commit 45c6b78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/phpunit/tests/image/resize.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ public function test_resize_avif() {
9292
$file = DIR_TESTDATA . '/images/avif-lossy.avif';
9393
$editor = wp_get_image_editor( $file );
9494

95+
if ( 'WP_Image_Editor_GD' === $this->editor_engine && PHP_VERSION < 80100 ) {
96+
$this->markTestSkipped( 'AVIF is only supported in GD with PHP >= 8.1.' );
97+
}
98+
9599
if ( 'WP_Image_Editor_Imagick' === $this->editor_engine ) {
96100
$version = Imagick::getVersion();
97101

0 commit comments

Comments
 (0)