Zach Borboa
6ceabf7293
Clean up
2021-07-26 00:35:01 -04:00
Zach Borboa
1226bb1a6c
Implement option to capture output of Curl::diagnose()
2021-07-20 23:28:20 -04:00
Zach Borboa
7348de72f3
Clean up
2021-07-20 23:10:20 -04:00
Zach Borboa
18e76855c2
Fix assertion
2021-07-20 23:01:40 -04:00
Zach Borboa
2a899465c4
Add method to run basic request diagnostics
2021-07-18 21:56:03 -04:00
Zach Borboa
250421927f
Add additional Curl::set* and MultiCurl::set* helper methods
2021-06-17 11:14:29 -04:00
Zach Borboa
fe829855cb
Fix #670 : Add additional checks before attempting to close curl handles
2021-06-09 20:58:33 -04:00
Zach Borboa
b88fd76ffc
Move Curl::buildUrl() to Url::buildUrl()
2021-03-23 10:02:11 -04:00
Zach Borboa
161f9aea63
Use short array syntax
2021-03-18 01:15:52 -04:00
Zach Borboa
cc3f7bac24
Remove PHP v5.x support and add basic doc for how one may install the old version
2021-03-17 12:19:38 -04:00
Zach Borboa
05a1a21090
Remove official support of HHVM
...
As of HHVM 4.0, PHP is no longer supported:
"With this release, we no longer aim to be compatible with PHP"
"We are considering removing support for <?php in the next release [...]"
2021-03-17 09:33:50 -04:00
Zach Borboa
d946b02b89
Clean up references of the previous continuous integration
2021-03-17 01:07:48 -04:00
Zach Borboa
6645958447
Remove fix attempt for CurlTest::testTimeout()
2021-03-17 00:40:36 -04:00
Zach Borboa
7697d2be2b
Use message from test helper when assertion fails
2021-03-16 21:57:12 -04:00
Zach Borboa
1d35adf53d
Attempt to fix the timeout tests failing
...
Use different ports for the timeout tests as the development server can
only handle one request at a time (single-threaded).
2021-03-16 09:18:28 -04:00
Zach Borboa
6d04c33645
Attempt to fix timeout issue only occurring on ci
2021-03-15 22:35:18 -04:00
Zach Borboa
f979b5ee87
Fix variable
2021-03-15 21:23:33 -04:00
Zach Borboa
c1eff76154
Add additional debugging
2021-03-15 20:57:07 -04:00
Zach Borboa
a143250a68
Add debugging error message
2021-03-15 20:25:07 -04:00
Zach Borboa
6531a8443b
Fix multipart/form-data tests expecting an Expect header
2021-03-15 07:01:22 -04:00
Zach Borboa
dd15d946c0
Skip test on PHP 8.0 and later due to error
2021-03-14 00:25:17 -05:00
Zach Borboa
79e7ddafb5
Fix tests as curl_init() and curl_multi_init() can return an object
...
As of PHP 8.0.0, curl_init() and curl_multi_init() return an object
instead of a resource. Update the tests to pass when the curl init
functions return either an object or a resource.
2021-03-13 20:32:20 -05:00
Zach Borboa
75adc83a5c
Add tests that expose the empty cookie jar after close bug
2021-03-13 18:18:15 -05:00
Zach Borboa
9d4134b830
Use a helper function to access values of private class properties
2020-10-31 21:28:15 -07:00
Zach Borboa
37c605f9e4
Fix #651 : Allow passing an indexed array to Curl::setHeaders()
2020-10-30 21:52:43 -07:00
Zach Borboa
ab407d6b25
Implement disableTimeout()
...
Implement Curl::disableTimeout() and MultiCurl::disableTimeout()
2020-05-09 09:19:35 -07:00
Zach Borboa
ea66e3bfb9
Standardize the use import statements
2020-04-17 18:47:59 -07:00
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
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
9a538f3a6b
Reduce number of ops
2019-05-12 21:13:10 -07:00
Zach Borboa
494d8a75a2
Add additional tests for MultiCurl proxy functions
2019-05-11 23:26:10 -07:00
Zach Borboa
62d5390ad7
Fix #579 : Correct implementation of Curl::setProxyAuth()
2019-04-19 22:37:55 -07: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