Changeset 485 in tests
- Timestamp:
- 12/16/2011 04:05:57 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-testcase/test_http.php
r407 r485 138 138 $res = wp_remote_request( $url, array( 'stream' => true, 'timeout' => 30 ) ); //Auto generate the filename. 139 139 140 $this->assertFalse( is_wp_error( $res ) ); 140 141 $this->assertEquals( '', $res['body'] ); // The body should be empty. 141 142 $this->assertEquals( $size, $res['headers']['content-length'] ); // Check the headers are returned (and the size is the same..)
Note: See TracChangeset
for help on using the changeset viewer.