Changeset 46682 for trunk/tests/phpunit/tests/external-http/basic.php
- Timestamp:
- 11/09/2019 03:36:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/external-http/basic.php
r46586 r46682 14 14 15 15 $response = wp_remote_get( 'https://secure.php.net/supported-versions.php' ); 16 17 $this->skipTestOnTimeout( $response ); 18 16 19 if ( 200 !== wp_remote_retrieve_response_code( $response ) ) { 17 20 $this->fail( 'Could not contact PHP.net to check versions.' ); 18 21 } 22 19 23 $php = wp_remote_retrieve_body( $response ); 20 24 … … 26 30 27 31 $response = wp_remote_get( "https://dev.mysql.com/doc/relnotes/mysql/{$matches[1]}/en/" ); 32 33 $this->skipTestOnTimeout( $response ); 34 28 35 if ( 200 !== wp_remote_retrieve_response_code( $response ) ) { 29 36 $this->fail( 'Could not contact dev.MySQL.com to check versions.' ); 30 37 } 38 31 39 $mysql = wp_remote_retrieve_body( $response ); 32 40
Note: See TracChangeset
for help on using the changeset viewer.