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:
parent
536d18babb
commit
9701c29b90
|
@ -45,7 +45,7 @@ abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$class = "WP_Http_" . $this->transport;
|
$class = "WP_Http_" . ucfirst( $this->transport );
|
||||||
if ( !call_user_func( array($class, 'test') ) ) {
|
if ( !call_user_func( array($class, 'test') ) ) {
|
||||||
$this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) );
|
$this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue