14 Commits

Author SHA1 Message Date
Zach Borboa 63bddcd230 Drop support for PHP 7.0 (#880) 2024-08-17 09:15:46 -04:00
Zach Borboa 3971c2f081 Fix sed portability 2023-03-10 04:31:11 -08:00
Zach Borboa 10ead55ca4 Fail on risky tests
Catch the following:
  There was 1 risky test:

  1) CurlTest\PHPCurlClassTest::testRequiredOptionCurlOptReturnTransferEmitsWarning
  This test did not perform any assertions

  /home/runner/work/php-curl-class/php-curl-class/tests/PHPCurlClass/PHPCurlClassTest.php:3097
2023-02-17 20:21:54 -08:00
Zach Borboa 4ed7644250 Update tests to work with PHPUnit 10 2023-02-17 19:31:41 -08:00
Zach Borboa acf5443a68 Fix sed command portability
Error messages:
    $ sed -i'' '-e/->expectWarning(/d' ./PHPCurlClass/PHPCurlClassTest.php ./PHPCurlClass/PHPMultiCurlClassTest.php
    sed: 1: "./PHPCurlClass/PHPCurlC ...": invalid command code .

    + phpunit_v10_shim
    + remove_expectWarning
    + sed -i '' '-e/->expectWarning(/d' ./PHPCurlClass/PHPCurlClassTest.php ./PHPCurlClass/PHPMultiCurlClassTest.php
    sed: can't read : No such file or directory
2023-02-17 19:29:22 -08:00
Zach Borboa bcf3c1ad33 Remove --verbose option removed in PHPUnit 10
Error:
  + ../vendor/bin/phpunit --configuration phpunit.xml --verbose
  PHPUnit 10.0.1 by Sebastian Bergmann and contributors.

  Unknown option "--verbose"
2023-02-03 17:24:13 -08:00
Zach Borboa 43e666de0f Remove --debug option removed in PHPUnit 10 for continuous integration tests
Error:
  + ../vendor/bin/phpunit --configuration phpunit.xml --debug --verbose
  PHPUnit 10.0.1 by Sebastian Bergmann and contributors.

  Unknown option "--debug"
2023-02-03 17:16:17 -08:00
Zach Borboa 2e9c738de4 Improve future release flag warning message 2022-06-23 09:47:38 -04:00
Zach Borboa 21564e7429 Allow test failures on future PHP releases to fail more quietly
This change allows continuous integration test failures on future PHP
releases without triggering some of the user interface warnings:
    - Red x mark instead of a green checkmark
    - Pull request merge warning:
        "Some checks were not successful
        7 successful and 1 failing checks"
2021-11-24 23:12:31 -05:00
Zach Borboa 31a65e2dfb Remove void return type when running tests on PHP 7.0
The void return type was implemented in PHP 7.1 and PHP 7.0 treats the
void return type as a class name.

Errors:
    1) CurlTest\CurlTest::testExtensionsLoaded
    TypeError: Return value of CurlTest\CurlTest::setUp() must be an instance of CurlTest\void, none returned

    /home/runner/work/php-curl-class/php-curl-class/tests/PHPCurlClass/PHPCurlClassTest.php:18

    2) CurlTest\CurlTest::testCaseInsensitiveArrayGet
    TypeError: Return value of CurlTest\CurlTest::setUp() must be an instance of CurlTest\void, none returned

    /home/runner/work/php-curl-class/php-curl-class/tests/PHPCurlClass/PHPCurlClassTest.php:18

    3) CurlTest\CurlTest::testCaseInsensitiveArraySet
    TypeError: Return value of CurlTest\CurlTest::setUp() must be an instance of CurlTest\void, none returned

    /home/runner/work/php-curl-class/php-curl-class/tests/PHPCurlClass/PHPCurlClassTest.php:18

    [...]
2021-11-23 21:53:32 -05:00
Zach Borboa 5c0a351e41 Unify continuous integration and run scripts more closely 2021-09-21 10:42:56 -04:00
Zach Borboa b06af57cb3 Clean up 2021-06-11 08:24:40 -04:00
Zach Borboa 8d62a97719 Unify continuous integration and run scripts more closely 2021-06-11 00:19:33 -04:00
Zach Borboa 3305e9c0b1 Rename continuous integration script 2021-03-29 10:08:46 -04:00