Changeset 58012
- Timestamp:
- 04/16/2024 11:07:32 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5/tests/phpunit/tests/http/functions.php
r58008 r58012 28 28 29 29 $this->assertInternalType( 'array', $headers, "Reply wasn't array." ); 30 $this->assertSame( 'image/png', $headers[' Content-Type'] );31 $this->assertSame( '153204', $headers[' Content-Length'] );30 $this->assertSame( 'image/png', $headers['content-type'] ); 31 $this->assertSame( '153204', $headers['content-length'] ); 32 32 $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) ); 33 33 } … … 73 73 // Should return the same headers as a HEAD request. 74 74 $this->assertInternalType( 'array', $headers, "Reply wasn't array." ); 75 $this->assertSame( 'image/png', $headers[' Content-Type'] );76 $this->assertSame( '153204', $headers[' Content-Length'] );75 $this->assertSame( 'image/png', $headers['content-type'] ); 76 $this->assertSame( '153204', $headers['content-length'] ); 77 77 $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) ); 78 78 } … … 95 95 // Should return the same headers as a HEAD request. 96 96 $this->assertInternalType( 'array', $headers, "Reply wasn't array." ); 97 $this->assertSame( 'image/png', $headers[' Content-Type'] );98 $this->assertSame( '153204', $headers[' Content-Length'] );97 $this->assertSame( 'image/png', $headers['content-type'] ); 98 $this->assertSame( '153204', $headers['content-length'] ); 99 99 $this->assertSame( 200, wp_remote_retrieve_response_code( $response ) ); 100 100 }
Note: See TracChangeset
for help on using the changeset viewer.