Changeset 55210 for trunk/tests/phpunit/tests/http/functions.php
- Timestamp:
- 02/03/2023 01:33:18 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/functions.php
r54997 r55210 21 21 $this->assertIsArray( $response ); 22 22 23 $this->assertSame( 'image/jpeg', $headers[' content-type'] );24 $this->assertSame( '40148', $headers[' content-length'] );23 $this->assertSame( 'image/jpeg', $headers['Content-Type'] ); 24 $this->assertSame( '40148', $headers['Content-Length'] ); 25 25 $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) ); 26 26 } … … 66 66 67 67 // Should return the same headers as a HEAD request. 68 $this->assertSame( 'image/jpeg', $headers[' content-type'] );69 $this->assertSame( '40148', $headers[' content-length'] );68 $this->assertSame( 'image/jpeg', $headers['Content-Type'] ); 69 $this->assertSame( '40148', $headers['Content-Length'] ); 70 70 $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) ); 71 71 } … … 87 87 88 88 // Should return the same headers as a HEAD request. 89 $this->assertSame( 'image/jpeg', $headers[' content-type'] );90 $this->assertSame( '40148', $headers[' content-length'] );89 $this->assertSame( 'image/jpeg', $headers['Content-Type'] ); 90 $this->assertSame( '40148', $headers['Content-Length'] ); 91 91 $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) ); 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.