Changeset 34123 for trunk/tests/phpunit/tests/http/base.php
- Timestamp:
- 09/14/2015 05:36:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/base.php
r32712 r34123 17 17 function setUp() { 18 18 19 if ( is_callable( array('WP_H TTP', '_getTransport') ) ) {20 $this->markTestSkipped('The WP_H TTPtests require a class-http.php file of r17550 or later.');19 if ( is_callable( array('WP_Http', '_getTransport') ) ) { 20 $this->markTestSkipped('The WP_Http tests require a class-http.php file of r17550 or later.'); 21 21 return; 22 22 } 23 23 24 $class = "WP_H TTP_" . $this->transport;24 $class = "WP_Http_" . $this->transport; 25 25 if ( !call_user_func( array($class, 'test') ) ) { 26 26 $this->markTestSkipped( sprintf('The transport %s is not supported on this system', $this->transport) ); … … 185 185 $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30 ) ); //Auto generate the filename. 186 186 187 // Cleanup before we assert, as it'll return early. 187 // Cleanup before we assert, as it'll return early. 188 188 if ( ! is_wp_error( $res ) ) { 189 189 $filesize = filesize( $res['filename'] ); … … 206 206 $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30, 'limit_response_size' => $size ) ); //Auto generate the filename. 207 207 208 // Cleanup before we assert, as it'll return early. 208 // Cleanup before we assert, as it'll return early. 209 209 if ( ! is_wp_error( $res ) ) { 210 210 $filesize = filesize( $res['filename'] );
Note: See TracChangeset
for help on using the changeset viewer.