diff --git a/tests/phpunit/tests/functions.php b/tests/phpunit/tests/functions.php index 5c5d31a073..9b6cf41526 100644 --- a/tests/phpunit/tests/functions.php +++ b/tests/phpunit/tests/functions.php @@ -61,9 +61,6 @@ class Tests_Functions extends WP_UnitTestCase { } function test_path_is_absolute() { - if ( !is_callable('path_is_absolute') ) - $this->markTestSkipped(); - $absolute_paths = array( '/', '/foo/', @@ -81,9 +78,6 @@ class Tests_Functions extends WP_UnitTestCase { } function test_path_is_not_absolute() { - if ( !is_callable('path_is_absolute') ) - $this->markTestSkipped(); - $relative_paths = array( '', '.', diff --git a/tests/phpunit/tests/image/size.php b/tests/phpunit/tests/image/size.php index 497946c829..c27bbcfbf5 100644 --- a/tests/phpunit/tests/image/size.php +++ b/tests/phpunit/tests/image/size.php @@ -8,9 +8,6 @@ class Tests_Image_Size extends WP_UnitTestCase { function test_constrain_dims_zero() { - if (!is_callable('wp_constrain_dimensions')) - $this->markTestSkipped('wp_constrain_dimensions() is not callable.'); - // no constraint - should have no effect $out = wp_constrain_dimensions(640, 480, 0, 0); $this->assertSame( array( 640, 480 ), $out ); @@ -26,9 +23,6 @@ class Tests_Image_Size extends WP_UnitTestCase { } function test_constrain_dims_smaller() { - if (!is_callable('wp_constrain_dimensions')) - $this->markTestSkipped('wp_constrain_dimensions() is not callable.'); - // image size is smaller than the constraint - no effect $out = wp_constrain_dimensions(500, 600, 1024, 768); $this->assertSame( array( 500, 600 ), $out ); @@ -41,9 +35,6 @@ class Tests_Image_Size extends WP_UnitTestCase { } function test_constrain_dims_equal() { - if (!is_callable('wp_constrain_dimensions')) - $this->markTestSkipped('wp_constrain_dimensions() is not callable.'); - // image size is equal to the constraint - no effect $out = wp_constrain_dimensions(1024, 768, 1024, 768); $this->assertSame( array( 1024, 768 ), $out ); @@ -56,9 +47,6 @@ class Tests_Image_Size extends WP_UnitTestCase { } function test_constrain_dims_larger() { - if (!is_callable('wp_constrain_dimensions')) - $this->markTestSkipped('wp_constrain_dimensions() is not callable.'); - // image size is larger than the constraint - result should be constrained $out = wp_constrain_dimensions(1024, 768, 500, 600); $this->assertSame( array( 500, 375 ), $out ); @@ -81,9 +69,6 @@ class Tests_Image_Size extends WP_UnitTestCase { } function test_constrain_dims_boundary() { - if (!is_callable('wp_constrain_dimensions')) - $this->markTestSkipped('wp_constrain_dimensions() is not callable.'); - // one dimension is larger than the constraint, one smaller - result should be constrained $out = wp_constrain_dimensions(1024, 768, 500, 800); $this->assertSame( array( 500, 375 ), $out );