diff --git a/tests/phpunit/tests/cache.php b/tests/phpunit/tests/cache.php index b8c11b09df..548f185fa9 100644 --- a/tests/phpunit/tests/cache.php +++ b/tests/phpunit/tests/cache.php @@ -115,7 +115,7 @@ class Tests_Cache extends WP_UnitTestCase { global $_wp_using_ext_object_cache; if ( $_wp_using_ext_object_cache ) { - return; + $this->markTestSkipped( 'This test requires that an external object cache is not in use.' ); } $key = __FUNCTION__;