From 9701c29b904408de1a4152e9ecebb1d120e77c99 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sun, 28 Aug 2016 10:33:24 +0000 Subject: [PATCH] Bootstrap: Fix failing external HTTP tests after [38411]. When testing the transports, the transport name needs to be capitalized for the class name to be correct (`WP_Http_Curl` vs. `WP_Http_curl` ). See #36335. git-svn-id: https://develop.svn.wordpress.org/trunk@38416 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/http/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/http/base.php b/tests/phpunit/tests/http/base.php index 55e8c0a383..671e2ae08c 100644 --- a/tests/phpunit/tests/http/base.php +++ b/tests/phpunit/tests/http/base.php @@ -45,7 +45,7 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { return; } - $class = "WP_Http_" . $this->transport; + $class = "WP_Http_" . ucfirst( $this->transport ); if ( !call_user_func( array($class, 'test') ) ) { $this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) ); }