From 1beeccc96f68d15c3b0125aed8d4e3b86339d9be Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Sun, 22 Feb 2015 21:41:22 +0000 Subject: [PATCH] Use PHP 5.2 compatible syntax in image tests. T_PAAMAYIM_NEKUDOTAYIM, HAKUNA_MATATA, YOLO. See [31510], #31124. git-svn-id: https://develop.svn.wordpress.org/trunk@31512 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/image/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/image/functions.php b/tests/phpunit/tests/image/functions.php index f0705d85bd..9cc3f09d2a 100644 --- a/tests/phpunit/tests/image/functions.php +++ b/tests/phpunit/tests/image/functions.php @@ -137,7 +137,7 @@ class Tests_Image_Functions extends WP_UnitTestCase { // Save a file as each mime type, assert it works foreach ( $mime_types as $mime_type ) { - if ( ! $class::supports_mime_type( $mime_type ) ) { + if ( ! $img->supports_mime_type( $mime_type ) ) { continue; } @@ -232,7 +232,7 @@ class Tests_Image_Functions extends WP_UnitTestCase { $temp = get_temp_dir(); foreach ( $mime_types as $ext => $mime_type ) { - if ( ! $class::supports_mime_type( $mime_type ) ) { + if ( ! $img->supports_mime_type( $mime_type ) ) { continue; }