wordpress-develop/tests/phpunit/tests/http/includeOldRequestsClass.php
Sergey Biryukov b6b6ded79a External Libraries: Update the Requests library to version 2.0.6.
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
2023-04-05 13:10:53 +00:00

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();
}
}