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
This commit is contained in:
parent
6556f8e112
commit
1beeccc96f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user