Commit Graph

34 Commits

Author SHA1 Message Date
Zach Borboa 9c03d19715 Remove some uses of function_exists() where no longer necessary 2021-11-25 11:11:32 -05:00
Zach Borboa 2973f50df8 Determine request method using helper method 2021-11-20 23:13:10 -05:00
Zach Borboa 3d9acedb66 Correct the post/redirect/get logic when using MultiCurl::addPost() 2021-11-20 22:17:32 -05:00
Zach Borboa 7af4a8d383 Fix some errors caused by using strict types 2021-07-26 10:08:44 -04:00
Zach Borboa bb1a190071 Use strict types 2021-07-26 00:48:18 -04:00
Zach Borboa 6ceabf7293 Clean up 2021-07-26 00:35:01 -04:00
Zach Borboa 0031da7477 Remove environmental variable no longer needed
All the tests now make use of PHP's built-in web server and the variable
is no longer needed to determine if the development server is being
used.
2021-03-26 00:03:46 -04:00
Zach Borboa 161f9aea63 Use short array syntax 2021-03-18 01:15:52 -04:00
Zach Borboa d946b02b89 Clean up references of the previous continuous integration 2021-03-17 01:07:48 -04:00
Zach Borboa e71ff2c56c Use MultiCurl::startTime and MultiCurl::stopTime when generating request stats 2021-03-17 00:29:47 -04:00
Zach Borboa 6c355bdb5e Update step names 2021-03-16 22:27:05 -04:00
Zach Borboa 7697d2be2b Use message from test helper when assertion fails 2021-03-16 21:57:12 -04:00
Zach Borboa a74b38821c Set debugging message when rate limit assertions fail 2021-03-16 12:34:40 -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 b27d86cd13 Add files to run php80 tests inside a docker container 2021-03-13 18:03:24 -05:00
Zach Borboa 23e95578f8 Use helper function to simplify calculating request statistics 2021-03-13 17:30:13 -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 976008d094 Implement rate limiting requests via MultiCurl::setRateLimit() 2020-05-16 22:01:15 -07:00
Zach Borboa ea66e3bfb9 Standardize the use import statements 2020-04-17 18:47:59 -07:00
Zach Borboa 9a538f3a6b Reduce number of ops 2019-05-12 21:13:10 -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 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 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 05a5af9b8e Fix #472: Reset request content-length to fix subsequent request hanging after a PUT request 2017-10-11 00:01:20 -07:00
Zach Borboa 2264362338 Clean up namespacing 2017-04-30 15:58:33 -07:00
Zach Borboa d9b5e3ebd5 Fix PHPUnit 6.0 release causing build to break.
Use PHPUnit's new namespacing.
Add shim for backwards compatibility and run on PHP < 7.0.
2017-03-18 04:25:48 -07: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
Cyrille Faucheux dc6001688f Support post-redirect-get requests 2016-03-05 13:45:25 +01:00
Zach Borboa 8d701b0648 Fix #191: Use $camelCase for properties (class member variables) 2015-07-30 23:54:03 -07:00
Zach Borboa 70be5e4eb3 Fix #171: Allow sending body data in delete() 2015-04-22 01:18:48 -07:00
Zach Borboa bfe5b2fed4 Fix #161: Replace deprecated mime_content_type() with finfo_file() when available 2015-04-01 16:41:50 -07:00
Zach Borboa 12d91574b6 Swap assertion parameter order 2014-08-17 00:23:51 -07:00
Zach Borboa 360058c529 Use namespaces 2014-05-22 21:29:24 -07:00