Changeset 62593 for trunk/tests/phpunit/tests/http/http.php
- Timestamp:
- 06/30/2026 04:36:25 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/http/http.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/http/http.php
r59293 r62593 276 276 array( 123, PHP_URL_PATH, '123' ), 277 277 ); 278 }279 280 /**281 * @ticket 35426282 *283 * @covers ::get_status_header_desc284 */285 public function test_http_response_code_constants() {286 global $wp_header_to_desc;287 288 $ref = new ReflectionClass( 'WP_Http' );289 $constants = $ref->getConstants();290 291 // This primes the `$wp_header_to_desc` global:292 get_status_header_desc( 200 );293 294 $this->assertSame( array_keys( $wp_header_to_desc ), array_values( $constants ) );295 278 } 296 279
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)