Commit Graph

281 Commits

Author SHA1 Message Date
Zach Borboa abc7dc2f53 Use Curl::getOpt() instead of reflection 2016-12-24 12:47:58 -08:00
Zach Borboa 96b3d50c2e Simplify setCookie tests 2016-12-24 12:16:10 -08:00
Zach Borboa 7b5dd71bd5 Implement MultiCurl::setCookies() 2016-12-23 00:20:51 -08:00
Zach Borboa 296345b0a2 Implement Curl::setCookies() 2016-12-18 11:31:38 -08:00
Zach Borboa d2ee158c92 Display php version and curl version when running ci tests 2016-12-15 03:51:33 -08:00
Zach Borboa 7a623ac0de Add newline to allow cookie file to be read correctly and cookies to be included in request 2016-12-15 03:29:33 -08:00
Zach Borboa 04b8a63e71 Use Curl::setCookieFile() 2016-12-15 03:17:31 -08:00
Zach Borboa 4b8f6e0082 Readd assertion testing cookie sent in request and received by server 2016-12-15 03:17:04 -08:00
Zach Borboa 6e7c609ca8 Fix test failing only on continuous integration servers 2016-12-10 14:21:13 -08:00
Zach Borboa 95c9f92c9f Clean up 2016-11-12 09:21:06 -08:00
Zach Borboa 714d072a14 Mark skipped tests with PHPUnit markTestSkipped() 2016-11-12 08:41:23 -08:00
Zach Borboa 6b63561944 Add additional download tests with partial file having same or larger file size as source 2016-11-11 00:38:30 -08:00
Zach Borboa d8808daf7a Add limited support for 416 Requested Range Not Satisfiable 2016-11-11 00:23:26 -08:00
Zach Borboa 7e0b477c9f Fix PHP 5.3 syntax error (unexpected T_OBJECT_OPERATOR) 2016-11-10 20:44:02 -08:00
Zach Borboa 5cb05e956a Fix #405: Support resume for Curl::download() 2016-11-10 20:34:18 -08:00
Zach Borboa d2313c0294 Move file upload and removal to helper functions 2016-11-06 01:13:42 -07:00
Zach Borboa 62d869ed17 Allow passing additional arguments when running unit test script 2016-11-06 00:37:36 -07:00
Zach Borboa 9bfdd791cd Remove keys not found in curl_getinfo() response on select systems 2016-11-04 21:10:57 -07:00
Zach Borboa ed37de7d87 Fix #404: Allow calling Curl::getInfo() without option 2016-11-04 02:24:50 -07:00
Zach Borboa 5cb8223c47 Fix #400: Use sequential ids to allow for ordered post processing 2016-10-14 19:50:57 -07:00
Kai Hempel e087f51c61 Add a curl add method for direct handle attach 2016-10-11 17:13:32 +02:00
Zach Borboa 15db0b95a3 Add syntax check exclusion; Clean up syntax 2016-09-27 00:28:57 -07:00
Zach Borboa bfc868fab4 Remove foreach loops 2016-09-24 01:22:44 -07:00
Zach Borboa cc23a1b29e Fix Curl::unsetHeader() 2016-09-24 01:02:04 -07:00
Zach Borboa 126491d8fc Allow requested test to be set via query string parameter 2016-09-24 00:54:38 -07:00
Zach Borboa 363a362bcd Fix #332: Implement Curl::setMaxFilesize() 2016-09-23 01:13:49 -07:00
Zach Borboa 7ca7ac3629 Use request-line header and effectiveUrl for assertions 2016-09-04 03:03:24 -07:00
Zach Borboa 35ac500e03 Improve cookie handling for multicurl requests.
Fix Curl::responseCookies set in headerCallback() being overwritten during multicurl request.
Use rfc cookie encoding when using MultiCurl::setCookie().
Make MultiCurl::responseCookies publicly accessible.
2016-09-04 01:12:06 -07:00
Zach Borboa 4c47bac9fa Add multicurl test for setHeader and individual overrides 2016-09-04 00:13:49 -07:00
Zach Borboa 5087433ba1 Start built-in web server for PHP 7.1 continuous integration tests 2016-09-02 17:27:05 -07:00
Zach Borboa 25a764fcb0 Include syntax check in fails to exit on 2016-09-02 00:41:36 -07:00
Zach Borboa 976f837499 Use xargs for syntax check to fail on error 2016-09-02 00:40:28 -07:00
Zach Borboa 8db91c79c7 Ensure Curl::setOpts() returns true when all options are successfully set 2016-08-29 22:44:48 -07:00
Zach Borboa 39c21041a5 Clean up per PSR2 2016-08-24 00:25:38 -07:00
Zach Borboa 81be853f51 Show progress of the phpcs run 2016-08-22 19:46:10 -07:00
Zach Borboa 87d28efff6 Ignore vendor directory when running phpcs 2016-08-22 02:44:28 -07:00
Zach Borboa 30b9bcb76b Add --color=always to grep and egrep commands 2016-08-19 00:37:32 -07:00
Zach Borboa 18b5ad7e78 Require both braces on else statement line 2016-08-19 00:25:23 -07:00
Zach Borboa 400cf8b0a2 Exit with error count 2016-08-19 00:06:55 -07:00
Zach Borboa 849137a95e Use explicit argument separator when building url 2016-08-12 02:01:23 -07:00
Zach Borboa e705f5e86e Skip setOpt test on 5.3, 5.4, and HHVM 2016-08-07 23:18:36 -07:00
Zach Borboa 26701569b2 Implement Curl::setOpts() 2016-08-07 22:41:12 -07:00
Zach Borboa b1f345b2f3 Add test for Curl::setOpt 2016-08-07 22:24:39 -07:00
Zach Borboa bfe89ab8ba Require keyword "elseif" to be used instead of "else if" so that all control keywords look like single words 2016-08-07 15:10:25 -07:00
Zach Borboa a48ec2bfff Check all array values for binary data; Remove JSON_PRETTY_PRINT only supported PHP >= 5.4.0 2016-08-07 01:40:02 -07:00
Zach Borboa a32726bc09 Clean up 2016-08-07 01:37:30 -07:00
Zach Borboa 679ce8e3c4 Fix #345: Allow POSTing multidimensional array with file 2016-08-07 00:04:36 -07:00
Zach Borboa 8285b9ff21 Fix #357: Allow passing json_decode() parameters to Curl::setDefaultJsonDecoder 2016-07-23 01:26:57 -07:00
Zach Borboa 15efc64824 Add test for Curl::setCookieString 2016-07-17 14:42:55 -07:00
Zach Borboa b24b575e58 Make Curl::totalTime a deferred property 2016-07-11 00:17:11 -07:00