Zach Borboa
2fd406a500
Fix continuous integration tests for PHP 7.3.
...
There were 3 errors:
1) CurlTest\CurlTest::testMultipartFormDataContentType
TypeError: Argument 2 passed to PHPUnit\Framework\Assert::assertContains() must be iterable, string given, [...]
2) CurlTest\CurlTest::testJsonEncode
ErrorException: json_encode error: Malformed UTF-8 characters, possibly incorrectly encoded
3) CurlTest\CurlTest::testRequiredOptionCurlOptReturnTransferEmitsWarning
CURLOPT_RETURNTRANSFER is a required option
2020-02-17 13:34:53 -08:00
Zach Borboa
82c0880ab5
Clean up
2020-01-14 20:56:42 -08:00
Zach Borboa
a020585a73
Fix #608 : Implement Curl::setRange() and MultiCurl::setRange()
2020-01-14 20:55:41 -08:00
Zach Borboa
1d0f6cfc84
Fix #609 : Implement Curl::setFile() and MultiCurl::setFile()
2020-01-14 20:36:19 -08:00
Zach Borboa
2d591c3b7c
Fix lingering temporary download file when using MultiCurl::addDownload() ( #602 )
2019-11-17 00:19:57 -08:00
Zach Borboa
f27059b170
Remove notice when request is made and test flag is not set.
...
Message:
PHP Notice: Undefined index: PHP_CURL_CLASS_TEST_MODE_ENABLED in
./php-curl-class/tests/PHPCurlClass/server.php on line 4
2019-07-18 19:06:52 -07:00
Zach Borboa
505663a55d
Use camelCase for ArrayUtil function names and deprecate old snake_case names
2019-06-09 22:26:18 -07:00
Zach Borboa
82b927bbcd
Add test for Curl::removeHeader()
2019-05-24 22:48:09 -07:00
Zach Borboa
c894feda9f
Add test cases for the SEARCH method
2019-05-22 23:49:22 -07:00
Zach Borboa
8598deaa6f
Clean up
2019-05-17 05:01:13 -07:00
Zach Borboa
9a538f3a6b
Reduce number of ops
2019-05-12 21:13:10 -07:00
Zach Borboa
0857023319
Fix #572,#582: Add MultiCurl::setProxies() to make multicurl requests with multiple proxies
2019-05-12 01:01:57 -07:00
Zach Borboa
494d8a75a2
Add additional tests for MultiCurl proxy functions
2019-05-11 23:26:10 -07:00
Zach Borboa
52a8645872
Clean up
2019-05-11 09:33:01 -07:00
Zach Borboa
c36b2af2b0
Fix PHP 5.3 container test not completing successfully
2019-04-30 00:00:39 -07:00
Zach Borboa
62d5390ad7
Fix #579 : Correct implementation of Curl::setProxyAuth()
2019-04-19 22:37:55 -07:00
Zach Borboa
7dd4258e02
Fix #562 : Prevent direct execution of test server script unless testing
2019-01-05 12:09:03 -08:00
Zach Borboa
35a32a7a77
Fix #567 : Add proxy support for MultiCurl
2019-01-05 00:43:21 -08:00
Zach Borboa
bf68fc30bd
Add tests for content-length with DELETE requests ( #557 )
2018-11-29 23:01:26 -08:00
Zach Borboa
5c6fd4cdf3
Fix #555 : Remove temporary file when download fails
2018-11-08 08:27:47 -08:00
Zach Borboa
6fc4c5824b
Fix #545 : Allow fileless requests to use Content-Type: multipart/form-data.
...
This change allows making requests that don't contain files to use
Content-Type: multipart/form-data. Previously, requests with array data
not specifying any files were sent using
Content-Type: application/x-www-form-urlencoded.
2018-09-07 23:53:02 -07:00
Zach Borboa
76137ca48f
Fix #538 : Allow objects implementing JsonSerializable to be serialized to JSON when passed as request data
2018-08-18 07:35:18 -07:00
Zach Borboa
26e6a966df
Add allowed error that occurs when running unit tests inside container
2018-07-28 13:40:33 -07:00
Zach Borboa
24e98595f0
Throw error when json_encode fails
2018-07-27 01:43:17 -07:00
Zach Borboa
86e12e3b91
Fix #331 : Add methods to use proxy
2018-07-17 04:29:25 -07:00
Zach Borboa
c21970ff9a
Fix #303 : Add methods for mocking.
...
Thanks to Sven Lütje (B4rb4ross4) for the initial suggestion and pull
request.
2018-07-07 04:16:34 -07:00
Zach Borboa
bc1dd97917
Simplify test
2018-06-18 23:50:28 -07:00
Zach Borboa
463b2adc71
Reorder tests
2018-06-18 23:12:57 -07:00
Zach Borboa
2bb151e03d
Allow specifying xml decoder options when calling Curl::setDefaultXmlDecoder
2018-06-18 23:08:26 -07:00
Zach Borboa
e087a5c117
Clean up
2018-06-18 01:29:16 -07:00
Zach Borboa
51904c06e3
Simplify test for Curl::reset()
2018-06-04 23:03:32 -07:00
Reza Sanaie
9f34c2bf57
Allow support for curl_reset()
2018-06-04 10:21:22 -07:00
Zach Borboa
60917c1e8e
Use unset() to automatically call __destruct() when testing for a memory leak
2018-05-23 00:57:10 -07:00
Zach Borboa
fddd222575
Add additional possible error
2018-05-20 02:47:13 -07:00
Zach Borboa
d736b5652b
Add assertion messages to display unexpected error codes
2018-05-20 02:46:43 -07:00
Zach Borboa
90f4552563
Fix failure tests erroring during continuous integration tests with mismatching error codes.
...
Fixes "Failed asserting that 28 matches expected 55."
2018-04-29 02:25:01 -07:00
Zach Borboa
027ee67373
Fix failure tests erroring with mismatching error codes.
...
Fixes "Failed asserting that 35 matches expected 28."
2018-04-29 01:47:55 -07:00
Zach Borboa
fa39f26a3a
Fix #517 : Require mbstring extension.
...
Use global namespace for mb_* functions.
2018-04-28 16:21:15 -07:00
Zach Borboa
fc054f6f41
Add script to generate compressed urls test file.
...
Omit the timestamp and the file name from the file header to make the
file deterministic.
Refresh the urls test file.
2018-04-28 02:09:14 -07:00
Zach Borboa
186d23a269
Use compressed file for url tests
2018-04-27 22:21:51 -07:00
Zach Borboa
db980204ff
Add additional url test
2018-04-27 21:57:37 -07:00
woxcab
c91d7a7d78
Erase base URL parts if their preceding parts have overwritten by relative URL
2018-04-27 23:27:35 +03:00
Zach Borboa
a969fabaa0
Fix #513 : Add support for detecting SOAP content-types
2018-04-26 17:59:23 -07:00
Zach Borboa
e240b43606
Fix #511 : Use correct body in POST requests that use empty data arrays.
...
This fixes JSON POST requests incorrectly sending a serialized empty
array "[]" instead of an empty request body by default.
2018-04-26 02:49:21 -07:00
Zach Borboa
cfad5c4d3c
Fix #505 : Allow requests with Cyrillic characters in url
2018-04-20 01:03:05 -07:00
Zach Borboa
1d8c3f06da
Skip post-redirect-get test on hhvm-nightly
2018-01-27 06:28:51 -08:00
Zach Borboa
40f7026185
Fix #493 : Build POST data correctly when headers have been set.
...
Call MultiCurl::queueHandle sooner so that headers are correctly set when Curl::buildPostData is called and builds POST data differently depending on the request content-type.
2018-01-26 00:58:37 -08:00
Zach Borboa
44c1539ba6
Fix decoders set on individual instances ignored
2018-01-25 22:49:57 -08:00
Zach Borboa
cbacd9a68b
Fix #490 : Allow malformed response header to be parsed without error
2018-01-09 01:58:51 -08:00
Zach Borboa
05a5af9b8e
Fix #472 : Reset request content-length to fix subsequent request hanging after a PUT request
2017-10-11 00:01:20 -07:00