Changeset 46996 for trunk/tests/phpunit/tests/external-http/basic.php
- Timestamp:
- 12/19/2019 03:43:33 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/external-http/basic.php
r46682 r46996 17 17 $this->skipTestOnTimeout( $response ); 18 18 19 if ( 200 !== wp_remote_retrieve_response_code( $response ) ) { 20 $this->fail( 'Could not contact PHP.net to check versions.' ); 19 $response_code = wp_remote_retrieve_response_code( $response ); 20 if ( 200 !== $response_code ) { 21 $this->fail( sprintf( 'Could not contact PHP.net to check versions. Response code: %s', $response_code ) ); 21 22 } 22 23 … … 33 34 $this->skipTestOnTimeout( $response ); 34 35 35 if ( 200 !== wp_remote_retrieve_response_code( $response ) ) { 36 $this->fail( 'Could not contact dev.MySQL.com to check versions.' ); 36 $response_code = wp_remote_retrieve_response_code( $response ); 37 if ( 200 !== $response_code ) { 38 $this->fail( sprintf( 'Could not contact dev.MySQL.com to check versions. Response code: %s', $response_code ) ); 37 39 } 38 40
Note: See TracChangeset
for help on using the changeset viewer.