Zach Borboa
9c92856c61
Add additional Curl::set* and MultiCurl::set* helper methods
2021-06-23 10:28:58 -04:00
Zach Borboa
5e20ae37fa
Unify continuous integration and run scripts more closely
2021-06-11 08:37:46 -04:00
Zach Borboa
d678025869
Fix missing rsync error: "sh: 2: rsync: not found"
2021-06-10 20:16:21 -04:00
Zach Borboa
5425310a53
Fix #670 : Add additional checks before attempting to close curl handles
2021-06-10 20:15:53 -04:00
Zach Borboa
1b5989f9e9
Run test script when testing inside containers
2021-06-10 20:10:52 -04:00
Zach Borboa
c3384653e7
Rename continuous integration script
2021-06-10 12:30:24 -04:00
Zach Borboa
2a79fe1575
Consolidate continuous integration scripts
...
Merge before_script.sh into script.sh
2021-06-10 12:28:03 -04:00
Zach Borboa
ef037f058d
Match number of servers started
2021-06-10 12:17:21 -04:00
Zach Borboa
194d16c4d8
Move PHPUnit shims to test script
2021-06-10 12:11:11 -04:00
Zach Borboa
aaa70179ea
Fix path to PHPUnit binary
2021-06-10 11:34:53 -04:00
Zach Borboa
13a04102b5
Fix tests running with older versions of PHPUnit
2021-06-10 11:23:46 -04:00
Zach Borboa
5d7aad1460
Add support for using relative urls with MultiCurl::add*() methods
...
This change allows setting a base url with MultiCurl and adding requests
using relative paths.
Fixes #628 .
2021-06-10 11:05:58 -04:00
Zach Borboa
8f5d10aa47
Move Curl::buildUrl() to Url::buildUrl()
2021-06-09 23:27:49 -04:00
Zach Borboa
0fb5030581
Clean up
2021-06-09 23:05:44 -04:00
Zach Borboa
9447353028
Exclude website files from long lines check
2021-06-09 23:01:52 -04:00
Zach Borboa
04bb00b4f8
Remove flag for debugging
2021-06-09 23:01:03 -04:00
Zach Borboa
68ed597fea
Replace error count with error summary
2021-06-09 23:00:25 -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
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
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
91ab720ba5
Fix path to phpunit
2021-03-14 16:42:25 -04:00
Zach Borboa
e841e7c15e
Use phpunit from vendor directory when available
...
Error message:
tests/script.sh: line 17: phpunit: command not found
2021-03-14 16:35:54 -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
3f4e06f242
Temporarily allow function to be underscore prefixed to hint at early access
2021-03-14 00:16:08 -05:00
Zach Borboa
cd42a47bd8
Make request duration more accurate
2021-03-13 23:30:24 -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
118dc7339c
Fix phpunit configuration path when inside script directory
2021-03-13 20:09: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
b27d86cd13
Add files to run php80 tests inside a docker container
2021-03-13 18:03:24 -05:00
Zach Borboa
3406c09653
Remove unnecessary flush
...
Message:
Notice: ob_flush(): Failed to flush buffer. No buffer to flush in
./php-curl-class/tests/PHPCurlClass/server.php on line 288
2021-03-13 17:32:53 -05:00
Zach Borboa
23e95578f8
Use helper function to simplify calculating request statistics
2021-03-13 17:30:13 -05:00
Zach Borboa
e249df4d56
Change into script directory when running script
2021-03-13 11:09:15 -05:00
Zach Borboa
1c0bbeaee4
Use vendor phpcs when available
2021-03-13 09:15:47 -05:00
Zach Borboa
dbef40b16d
Clean up
2021-03-12 21:54:05 -05:00
Zach Borboa
c6fd8accfb
Allow method chaining indentation
2021-03-12 21:51:56 -05:00
Zach Borboa
4fad7d7081
Colorize invalid indentation message
2021-03-12 21:42:53 -05:00
Zach Borboa
780c55dd32
Clean up
2021-03-12 21:12:47 -05:00
Zach Borboa
f7ab8ed3ce
Include tests directory when checking for invalid indentation
2021-03-12 21:10:12 -05:00
Zach Borboa
e475432804
Move additional coding standards checks into separate script
2021-03-12 20:25:14 -05:00
Zach Borboa
78086f03ba
Move syntax checking to a separate script
2021-03-12 20:17:11 -05:00