wordpress-develop/tests/phpunit/tests/http
Ryan McCue 194c8d0e33 HTTP API: Switch back to returning an array.
The array-compatibility object we started returning in r37428 unfortunately isn't enough like an array. In particular, `is_array()` checks fail, despite the object implementing ArrayAccess. Mea culpa.

This moves the WP_HTTP_Response object to a new http_response key in the array, and changes the value back to an actual array.

Fixes #37097.
See #33055.


git-svn-id: https://develop.svn.wordpress.org/trunk@37989 602fd350-edb4-49c9-b593-d223f7449a82
2016-07-06 17:50:44 +00:00
..
base.php HTTP API: Replace internals with Requests library. 2016-05-13 04:41:45 +00:00
curl.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
functions.php HTTP API: Switch back to returning an array. 2016-07-06 17:50:44 +00:00
getHttpHeaders.php HTTP: Add unit tests for wp_get_http_headers() and wp_remote_retrieve_headers(). 2016-06-29 12:46:59 +00:00
http.php HTTP API: Add the missing 1xx HTTP response codes as constants of the WP_Http class, and add tests to ensure all available response codes are covered. 2016-02-28 01:45:24 +00:00
remoteRetrieveHeaders.php HTTP: Add unit tests for wp_get_http_headers() and wp_remote_retrieve_headers(). 2016-06-29 12:46:59 +00:00
streams.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00