wordpress-develop/tests/phpunit/tests/http
Sergey Biryukov d8f311800d Tests: Bring some consistency to mocking HTTP requests in unit tests.
Includes:
* Renaming the `$preempt` parameter to `$response` in the `pre_http_request` filter to better match the context used in callbacks (returning the original value if the conditions are not met rather than preempting the request).
* Synchronizing parameter names and types in various `pre_http_request` callbacks in unit tests.

Follow-up to [34509], [37907], [40628], [40629], [45667], [46175], [48242], [48462], [49904], [51021], [51973], [52146], [52382], [54043], [54968].

See #56793, #56792.

git-svn-id: https://develop.svn.wordpress.org/trunk@55029 602fd350-edb4-49c9-b593-d223f7449a82
2023-01-05 10:21:19 +00:00
..
base.php Built/Test tools, HTTP API: Refactor test for multiple location headers. 2022-12-14 01:26:39 +00:00
curl.php Tests: Add missing @covers tags for files in phpunit/tests/http/. 2021-02-15 14:00:02 +00:00
functions.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:30:26 +00:00
http.php Tests: Bring some consistency to mocking HTTP requests in unit tests. 2023-01-05 10:21:19 +00:00
includeOldRequestsClass.php HTTP API: Adds BC-layer /library/Requests.php file. 2022-12-19 15:10:20 +00:00
streams.php Code Modernization: Use explicit visibility for class property declarations. 2020-10-17 16:24:35 +00:00
wpGetHttpHeaders.php Tests: Bring some consistency to mocking HTTP requests in unit tests. 2023-01-05 10:21:19 +00:00
wpRemoteRetrieveHeaders.php Coding Standards: Add visibility to methods in tests/phpunit/tests/. 2021-11-04 15:22:47 +00:00