- Timestamp:
- 04/15/2024 12:30:10 PM (8 months ago)
- Location:
- branches/5.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.4
-
branches/5.4/tests/phpunit/tests/functions/wpRemoteFopen.php
r47212 r57997 26 26 public function test_wp_remote_fopen() { 27 27 // This URL gives a direct 200 response. 28 $url = 'https:// asdftestblog1.files.wordpress.com/2007/09/2007-06-30-dsc_4700-1.jpg';28 $url = 'https://s.w.org/screenshots/3.9/dashboard.png'; 29 29 $response = wp_remote_fopen( $url ); 30 30 31 $this->assertI nternalType( 'string',$response );32 $this->assert Equals( 40148, strlen( $response ) );31 $this->assertIsString( $response ); 32 $this->assertSame( 153204, strlen( $response ) ); 33 33 } 34 34 }
Note: See TracChangeset
for help on using the changeset viewer.