mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
This is a maintenance release with minor changes: * Fix typo in deprecation notice. * Minor internal improvements for passing the correct type to function calls. * Confirmed compatibility with PHP 8.2. No changes were needed, so Requests 2.0.1 and higher can be considered compatible with PHP 8.2. * Various documentation improvements and other general housekeeping. References: * [https://github.com/WordPress/Requests/releases/tag/v2.0.6 Requests 2.0.6 release notes] * [https://github.com/WordPress/Requests/compare/v2.0.5...v2.0.6 Full list of changes in Requests 2.0.6] Follow-up to [54997], [55007], [55046], [55225], [55296]. Props jrf, costdev. Fixes #58079. git-svn-id: https://develop.svn.wordpress.org/trunk@55629 602fd350-edb4-49c9-b593-d223f7449a82
23 lines
476 B
PHP
23 lines
476 B
PHP
<?php
|
|
|
|
/**
|
|
* Tests that the old Requests class is included
|
|
* for plugins or themes that still use it.
|
|
*
|
|
* @group http
|
|
*/
|
|
class Tests_HTTP_IncludeOldRequestsClass extends WP_UnitTestCase {
|
|
|
|
/**
|
|
* @ticket 57341
|
|
*
|
|
* @coversNothing
|
|
*/
|
|
public function test_should_include_old_requests_class() {
|
|
$this->expectDeprecation();
|
|
$this->expectDeprecationMessage( 'The PSR-0 `Requests_...` class names in the Requests library are deprecated.' );
|
|
|
|
new Requests();
|
|
}
|
|
}
|