Commit Graph

1072 Commits

Author SHA1 Message Date
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 d13c43160d Fix #521: Fix memory leak when class object unset, but not manually closed.
Move closure function outside class to avoid implicit reference to $this
and allow __destruct() to be called as expected when a class instance is
unset.
2018-05-23 00:31:33 -07:00
Zach Borboa c3a563260f Merge pull request #520 from zachborboa/master
Fix tests failing due to unexpected network error code
2018-05-20 03:02:00 -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 bab7ee9782 Merge pull request #519 from zachborboa/master
Fix failure tests erroring with mismatching error codes
2018-04-29 02:47:07 -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 3a6f673b83 Rename script to more accurately reflect actions taken 2018-04-29 01:05:40 -07:00
Zach Borboa 76dc8421e9 Merge pull request #518 from zachborboa/master
Require mbstring extension to use library
2018-04-28 16:37:40 -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 3839881735 Clean up 2018-04-28 01:01:10 -07:00
Zach Borboa 0985409467 Add script used to generate urls test file.
Thank you @woxcab for the script.
2018-04-28 00:46:55 -07:00
Zach Borboa dd886611e6 Add script to start development servers for load test 2018-04-28 00:32:01 -07:00
Zach Borboa 03d773b916 Standardize calculating script directory 2018-04-27 23:56:51 -07:00
Zach Borboa 98ce5d3286 Use consistent naming convention 2018-04-27 23:54:34 -07:00
Zach Borboa 00cfe93f6a Use MultiCurl::setConcurrency() in load test example 2018-04-27 23:31:46 -07:00
Zach Borboa f1b93ef515 Merge pull request #516 from zachborboa/master
Merge \Curl\Url improvements
2018-04-27 22:52:06 -07:00
Zach Borboa 9701cf64b9 Merge branch 'woxcab-master' 2018-04-27 22:32:23 -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
woxcab e7dc9f7bdc Prevent URL fragment destructing 2018-04-27 21:01:20 +03:00
Zach Borboa cd22b0ceeb Clean up 2018-04-26 19:18:18 -07:00
Zach Borboa 96b3a61d68 Merge pull request #514 from zachborboa/master
Add support for detecting SOAP content-types
2018-04-26 18:14:26 -07:00
Zach Borboa a969fabaa0 Fix #513: Add support for detecting SOAP content-types 2018-04-26 17:59:23 -07:00
Zach Borboa 932b86987f Merge pull request #512 from zachborboa/master
Use correct body in POST requests that use empty arrays for data
2018-04-26 03:22:57 -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 bdcf043917 Merge pull request #510 from zachborboa/master
Run continuous integration tests on version 7.2
2018-04-23 02:38:41 -07:00
Zach Borboa 6ccc08caf7 Run continuous integration tests on version 7.2 2018-04-23 02:20:48 -07:00
Zach Borboa 4b19e0fa02 Bump patch version 8.0.3 2018-04-21 01:28:43 -07:00
Zach Borboa 749327db53 Merge pull request #508 from zachborboa/master
Allow requests with Cyrillic characters in url
2018-04-20 01:16:44 -07:00
Zach Borboa cfad5c4d3c Fix #505: Allow requests with Cyrillic characters in url 2018-04-20 01:03:05 -07:00
Zach Borboa 75597b28c4 Bump patch version 8.0.2 2018-04-09 01:28:13 -07:00
Zach Borboa 7a634a6203 Merge pull request #507 from zachborboa/master
Remove content-length header for PATCH requests when data is empty
2018-04-09 01:27:04 -07:00
Zach Borboa a028011f3d Fix #506: Remove content-length header for PATCH requests when data is empty 2018-04-09 01:03:40 -07:00
Zach Borboa 624a49819d Temporarily allow hhvm continuous integration tests to fail 2018-04-09 00:37:19 -07:00
Zach Borboa 83cd9d14ee Update comment to match new behavior 2018-03-06 22:17:38 -08:00
agapov97 caf1ec2062 multicurl - starting new requests while curls array is not empty and activeCurls array size less than concurrency 2018-02-26 17:21:21 +03:00
Zach Borboa 53c45a6289 Temporarily allow hhvm-nightly continuous integration tests to fail 2018-02-13 23:12:12 -08:00
Zach Borboa 6efebcdcdf Update @return documentation 2018-02-08 08:12:58 -08:00
Zach Borboa bdfe1fcca0 Merge pull request #495 from zachborboa/master
Fix hhvm-nightly unit test failure
8.0.1
2018-01-27 07:40:39 -08:00
Zach Borboa 1d8c3f06da Skip post-redirect-get test on hhvm-nightly 2018-01-27 06:28:51 -08:00
Zach Borboa 7d59f67756 Fix unit test failure due to unresolvable dependencies.
Error 1:
  $ composer require phpunit/phpunit:5.7.*
  Your requirements could not be resolved to an installable set of packages.

Error 2:
  Fatal error: Uncaught Error: unknown class PHPUnit_Framework_TestCase in PHPCurlClassTest.php:9
2018-01-27 05:25:32 -08:00
Zach Borboa 8156a3f402 Bump patch version 2018-01-27 04:41:34 -08:00
Zach Borboa afce677cb0 Clean up 2018-01-27 04:40:38 -08:00
Zach Borboa b6ad72fee4 Merge pull request #494 from zachborboa/master
Fix #493: Build POST data correctly when headers have been set
2018-01-26 01:16:34 -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