Changeset 37428 for trunk/tests/phpunit/tests/http/functions.php
- Timestamp:
- 05/13/2016 04:41:45 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/functions.php
r35734 r37428 20 20 $headers = wp_remote_retrieve_headers( $response ); 21 21 22 $this->assertInternalType( 'array', $headers, "Reply wasn't array." );23 22 $this->assertEquals( 'image/jpeg', $headers['content-type'] ); 24 23 $this->assertEquals( '40148', $headers['content-length'] ); … … 37 36 $headers = wp_remote_head( $url ); 38 37 39 $this->assertInternalType( 'array', $headers, "Reply wasn't array." );40 38 $this->assertEquals( '404', wp_remote_retrieve_response_code( $headers ) ); 41 39 } … … 48 46 49 47 // should return the same headers as a head request 50 $this->assertInternalType( 'array', $headers, "Reply wasn't array." );51 48 $this->assertEquals( 'image/jpeg', $headers['content-type'] ); 52 49 $this->assertEquals( '40148', $headers['content-length'] ); … … 62 59 63 60 // should return the same headers as a head request 64 $this->assertInternalType( 'array', $headers, "Reply wasn't array." );65 61 $this->assertEquals( 'image/jpeg', $headers['content-type'] ); 66 62 $this->assertEquals( '40148', $headers['content-length'] ); … … 86 82 $cookies = wp_remote_retrieve_cookies( $response ); 87 83 88 $this->assertInternalType( 'array', $cookies );89 84 $this->assertNotEmpty( $cookies ); 90 85
Note: See TracChangeset
for help on using the changeset viewer.