diff --git a/tests/phpunit/tests/image/functions.php b/tests/phpunit/tests/image/functions.php index 116acd4ab4..1694c1e7f1 100644 --- a/tests/phpunit/tests/image/functions.php +++ b/tests/phpunit/tests/image/functions.php @@ -20,9 +20,9 @@ class Tests_Image_Functions extends WP_UnitTestCase { require_once DIR_TESTDATA . '/../includes/mock-image-editor.php'; // Ensure no legacy / failed tests detritus. - $folder = get_temp_dir() . 'wordpress-gsoc-flyer*.{jpg,pdf}'; + $folder = get_temp_dir() . 'wordpress-gsoc-flyer*.*'; - foreach ( glob( $folder, GLOB_BRACE ) as $file ) { + foreach ( glob( $folder ) as $file ) { unlink( $file ); } }