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
This commit is contained in:
Pascal Birchler 2016-08-28 10:33:24 +00:00
parent 536d18babb
commit 9701c29b90
1 changed files with 1 additions and 1 deletions

View File

@ -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) );
}