Commit Graph

418 Commits

Author SHA1 Message Date
Zach Borboa 8f5a4604ec Fix tar extract error due to HTTP redirect 2020-05-18 22:22:45 -07:00
Zach Borboa 25c37e8512 Fix missing rsync error: "sh: 2: rsync: not found" 2020-05-18 22:18:37 -07:00
Zach Borboa f4c41cb4b7 Add scripts for attaching to running container 2020-05-18 22:16:57 -07:00
Zach Borboa 14317ca210 Fix error: "the input device is not a TTY" 2020-05-18 18:58:43 -07:00
Zach Borboa 877e5b1275 Display error message indicating why execution of tests stopped 2020-05-17 21:04:54 -07:00
Zach Borboa be8cccc292 Stop execution of tests when a container step fails 2020-05-17 20:10:43 -07:00
Zach Borboa 85c95b187c Add rate limit test cases using uppercase letters for unit 2020-05-16 23:53:29 -07:00
Zach Borboa b33bfb93ef Clean up 2020-05-16 23:51:23 -07:00
Zach Borboa c4dfe8d6db Add files to run php74 tests inside a docker container 2020-05-16 23:17:02 -07:00
Zach Borboa 976008d094 Implement rate limiting requests via MultiCurl::setRateLimit() 2020-05-16 22:01:15 -07:00
Zach Borboa 9c00119ab5 Improve accuracy of timeout call by using microtime() 2020-05-12 22:41:02 -07:00
Zach Borboa 76ae1241cb Return a json response when calling the timeout test 2020-05-12 10:37:49 -07:00
Zach Borboa ab407d6b25 Implement disableTimeout()
Implement Curl::disableTimeout() and MultiCurl::disableTimeout()
2020-05-09 09:19:35 -07:00
Zach Borboa 75c9fc144b Fix #625: Update Url class to handle IPv6 addresses with bracket notation. 2020-04-22 22:18:47 -07:00
Zach Borboa ea66e3bfb9 Standardize the use import statements 2020-04-17 18:47:59 -07:00
Zach Borboa 2c6d228f58 Use vendor phpunit when available 2020-04-11 12:19:12 -07:00
Zach Borboa c58b8be799 Run test server for PHP 7.4 continuous integration tests 2020-02-19 17:28:57 -08:00
Zach Borboa 8b15ec5b43 Fix continuous integration tests for PHP 5.3.
Error message:
    PHP Fatal error:  Call to undefined method CurlTest\CurlTest::assertStringContainsString() in [...]
2020-02-17 16:08:23 -08:00
Zach Borboa 7340e8ede3 Fix continuous integration tests for PHP 5.3.
Error message:
    Parse error: syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in [...]
2020-02-17 16:02:40 -08:00
Zach Borboa 947848bd2a Fix continuous integration tests for PHP 7.0.
There was 1 error:
    1) CurlTest\CurlTest::testMultipartFormDataContentType
    Error: Call to undefined method CurlTest\CurlTest::assertStringContainsString()
    ./tests/PHPCurlClass/PHPCurlClassTest.php:590

There was 1 failure:
    1) CurlTest\CurlTest::testRequiredOptionCurlOptReturnTransferEmitsWarning
    Failed asserting that exception of type "Error" matches expected exception "\PHPUnit\Framework\Error\Warning".
    Message was: "Call to undefined method CurlTest\CurlTest::expectWarning()" at
    ./tests/PHPCurlClass/PHPCurlClassTest.php:3036
2020-02-17 15:28:31 -08:00
Zach Borboa 702e4a13ea Fix continuous integration tests for PHP 7.1.
There was 1 failure:
    1) CurlTest\CurlTest::testRequiredOptionCurlOptReturnTransferEmitsWarning
    Failed asserting that exception of type "Error" matches expected exception "\PHPUnit\Framework\Error\Warning".
    Message was: "Call to undefined method CurlTest\CurlTest::expectWarning()" at
    ./tests/PHPCurlClass/PHPCurlClassTest.php:3036
2020-02-17 14:44:45 -08: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 2d591c3b7c Fix lingering temporary download file when using MultiCurl::addDownload() (#602) 2019-11-17 00:19:57 -08:00
Zach Borboa f27059b170 Remove notice when request is made and test flag is not set.
Message:
 PHP Notice:  Undefined index: PHP_CURL_CLASS_TEST_MODE_ENABLED in
 ./php-curl-class/tests/PHPCurlClass/server.php on line 4
2019-07-18 19:06:52 -07: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 76445a3c5a Update server used in PHP 5.4, 5.5, and 5.6 tests.
This change updates the server used for PHP 5.4, 5.5, and 5.6 tests in
order to support SEARCH requests. Using the PHP built-in web server in
these versions errors with 501 Not Implemented / Request method not
supported.
2019-05-24 08:29:21 -07:00
Zach Borboa 130b7a3f37 Fix error: "add-apt-repository: command not found". 2019-05-24 05:28:52 -07:00
Zach Borboa c894feda9f Add test cases for the SEARCH method 2019-05-22 23:49:22 -07:00
Zach Borboa 8598deaa6f Clean up 2019-05-17 05:01:13 -07:00
Zach Borboa 9a538f3a6b Reduce number of ops 2019-05-12 21:13:10 -07:00
Zach Borboa 0857023319 Fix #572,#582: Add MultiCurl::setProxies() to make multicurl requests with multiple proxies 2019-05-12 01:01:57 -07:00
Zach Borboa 494d8a75a2 Add additional tests for MultiCurl proxy functions 2019-05-11 23:26:10 -07:00
Zach Borboa 1e615d340e Replace usage of is_null() with strict comparison operator 2019-05-11 11:57:32 -07:00
Zach Borboa 52a8645872 Clean up 2019-05-11 09:33:01 -07:00
Zach Borboa c36b2af2b0 Fix PHP 5.3 container test not completing successfully 2019-04-30 00:00:39 -07:00
Zach Borboa 9205c5fe67 Display debugging information and output more verbose information when running phpunit locally using test script 2019-04-25 22:31:08 -07:00
Zach Borboa fd1fa390cd Avoid container pulling host composer lock file which may cause downgrading installed libraries 2019-04-21 23:36:04 -07:00
Zach Borboa ea0294f907 Fix phpunit test not completing when run in container 2019-04-21 23:34:26 -07:00
Zach Borboa e46e9cffff Update php73 container from 7.3-rc-cli to 7.3-cli 2019-04-21 22:29:44 -07:00
Zach Borboa 62d5390ad7 Fix #579: Correct implementation of Curl::setProxyAuth() 2019-04-19 22:37:55 -07:00
Zach Borboa c7eb389bb9 Add debugging 2019-04-19 22:31:44 -07:00
Zach Borboa 75ee4ec75e Run tests with most recent version first 2019-04-19 21:57:53 -07:00
Zach Borboa 7dd4258e02 Fix #562: Prevent direct execution of test server script unless testing 2019-01-05 12:09:03 -08:00
Zach Borboa 35a32a7a77 Fix #567: Add proxy support for MultiCurl 2019-01-05 00:43:21 -08:00
Zach Borboa 39eba1dfa4 Add files to run php73 tests inside a docker container 2018-12-09 21:39:38 -08:00
Zach Borboa 896ef82246 Fix #560: Run continuous integration tests on version 7.3 2018-12-09 20:01:47 -08:00