From 8698238039fd949cdfd4063fd4f0d79055f8f726 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 27 Jul 2023 14:45:09 +0000 Subject: [PATCH] Coding Standards: Use correct case for class name in `WP_Http` tests. Follow-up to [8516], [54968]. Props jrf. See #58831. git-svn-id: https://develop.svn.wordpress.org/trunk@56319 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/http/base.php | 2 +- tests/phpunit/tests/http/http.php | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/phpunit/tests/http/base.php b/tests/phpunit/tests/http/base.php index ad487e3f19..00abf1655b 100644 --- a/tests/phpunit/tests/http/base.php +++ b/tests/phpunit/tests/http/base.php @@ -8,7 +8,7 @@ * You may also need `-d safe_mode_gid=1` to relax the safe_mode checks to allow * inclusion of PEAR. * - * The WP_HTTP tests require a class-http.php file of r17550 or later. + * The WP_Http tests require a class-http.php file of r17550 or later. */ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { // You can use your own version of data/WPHTTP-testcase-redirection-script.php here. diff --git a/tests/phpunit/tests/http/http.php b/tests/phpunit/tests/http/http.php index de9dd73320..47d169e619 100644 --- a/tests/phpunit/tests/http/http.php +++ b/tests/phpunit/tests/http/http.php @@ -1,6 +1,6 @@ assertIsArray( $headers['location'], 'Location header is expected to be an array.' ); $this->assertCount( 2, $headers['location'], 'Location header is expected to contain two values.' ); @@ -645,7 +645,7 @@ class Tests_HTTP_HTTP extends WP_UnitTestCase { 'method' => 'GET', ); - $redirect_response = WP_HTTP::handle_redirects( + $redirect_response = WP_Http::handle_redirects( 'http://example.com/?multiple-location-headers=1', $args, array(