From 3a49864e41c4f9ae2662ee4cee06c6e6b5e8f330 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Sep 2019 22:26:18 +0000 Subject: [PATCH] Tests: Remove a test for `rest_preload_api_request()` only relevant for PHP 5.2. Props dkarfa. See #48074. git-svn-id: https://develop.svn.wordpress.org/trunk@46219 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/phpunit/tests/rest-api.php b/tests/phpunit/tests/rest-api.php index 512aa61b6d..2b8310f168 100644 --- a/tests/phpunit/tests/rest-api.php +++ b/tests/phpunit/tests/rest-api.php @@ -780,15 +780,6 @@ class Tests_REST_API extends WP_UnitTestCase { $this->assertEquals( $routes['/test-ns/test'][0]['methods'], array( 'GET' => true ) ); } - /** - * Ensure rest_preload_api_request() works without notices in PHP 5.2. - * - * The array_reduce() function only accepts mixed variables starting with PHP 5.3. - */ - function test_rest_preload_api_request_no_notices_php_52() { - $this->assertTrue( is_array( rest_preload_api_request( 0, '/' ) ) ); - } - function test_rest_preload_api_request_with_method() { $rest_server = $GLOBALS['wp_rest_server']; $GLOBALS['wp_rest_server'] = null;