From 42dcb586ee749df8c1ee780ace0b970a90b6947f Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 1 Sep 2015 17:03:13 +0000 Subject: [PATCH] After [33807], fix unit tests for PHP 5.2 Fixes #17626. git-svn-id: https://develop.svn.wordpress.org/trunk@33846 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/image/intermediate_size.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/tests/image/intermediate_size.php b/tests/phpunit/tests/image/intermediate_size.php index 4458f6a76d..db80f94abf 100644 --- a/tests/phpunit/tests/image/intermediate_size.php +++ b/tests/phpunit/tests/image/intermediate_size.php @@ -98,7 +98,7 @@ class Tests_Image_Intermediate_Size extends WP_UnitTestCase { // test for the expected string because the array will by definition // return with the correct height and width attributes - $this->assertNotFalse( strpos( $image['file'], '330x220' ) ); + $this->assertTrue( strpos( $image['file'], '330x220' ) > 0 ); // cleanup remove_image_size( 'test-size' ); @@ -122,7 +122,7 @@ class Tests_Image_Intermediate_Size extends WP_UnitTestCase { // test for the expected string because the array will by definition // return with the correct height and width attributes - $this->assertNotFalse( strpos( $image['file'], '330x220' ) ); + $this->assertTrue( strpos( $image['file'], '330x220' ) > 0 ); // cleanup remove_image_size( 'test-size' ); @@ -149,7 +149,7 @@ class Tests_Image_Intermediate_Size extends WP_UnitTestCase { // you have to test for the string because the image will by definition // return with the correct height and width attributes - $this->assertNotFalse( strpos( $image['file'], '450x300' ) ); + $this->assertTrue( strpos( $image['file'], '450x300' ) > 0 ); // cleanup remove_image_size( 'test-size' ); @@ -206,7 +206,7 @@ class Tests_Image_Intermediate_Size extends WP_UnitTestCase { // test for the expected string because the array will by definition // return with the correct height and width attributes - $this->assertNotFalse( strpos( $image['file'], $image_w . 'x' . $image_h ) ); + $this->assertTrue( strpos( $image['file'], $image_w . 'x' . $image_h ) > 0 ); // cleanup remove_image_size( 'test-size' ); @@ -237,7 +237,7 @@ class Tests_Image_Intermediate_Size extends WP_UnitTestCase { // test for the expected string because the array will by definition // return with the correct height and width attributes - $this->assertNotFalse( strpos( $image['file'], $image_w . 'x' . $image_h ) ); + $this->assertTrue( strpos( $image['file'], $image_w . 'x' . $image_h ) > 0 ); // cleanup remove_image_size( 'test-size' );