Make WordPress Core

Ticket #36335: http-tests.diff

File http-tests.diff, 548 bytes (added by swissspidy, 8 years ago)
  • tests/phpunit/tests/http/base.php

    diff --git tests/phpunit/tests/http/base.php tests/phpunit/tests/http/base.php
    index 55e8c0a..671e2ae 100644
    abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase { 
    4545                        return;
    4646                }
    4747
    48                 $class = "WP_Http_" . $this->transport;
     48                $class = "WP_Http_" . ucfirst( $this->transport );
    4949                if ( !call_user_func( array($class, 'test') ) ) {
    5050                        $this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) );
    5151                }