mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
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
This commit is contained in:
+5
-5
@@ -101,19 +101,19 @@ echo "phpunit_version: ${phpunit_version}"
|
||||
extra_args="${@}"
|
||||
if [[ "${phpunit_version}" == "6.5."* ]]; then
|
||||
phpunit_v6_5_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "7.5."* ]]; then
|
||||
phpunit_v7_5_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "8.5."* ]]; then
|
||||
phpunit_v8_5_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "9."* ]]; then
|
||||
phpunit_v9_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "10."* ]]; then
|
||||
phpunit_v10_shim
|
||||
phpunit_args=" --display-incomplete --display-skipped --display-deprecations --display-errors --display-notices --display-warnings ${extra_args}"
|
||||
phpunit_args=" --display-incomplete --display-skipped --display-deprecations --display-errors --display-notices --display-warnings --fail-on-risky ${extra_args}"
|
||||
fi
|
||||
|
||||
if [[ "${CI_PHP_VERSION}" == "7.0" ]]; then
|
||||
|
||||
+5
-5
@@ -98,19 +98,19 @@ echo "phpunit_version: ${phpunit_version}"
|
||||
extra_args="${@}"
|
||||
if [[ "${phpunit_version}" == "6.5."* ]]; then
|
||||
phpunit_v6_5_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "7.5."* ]]; then
|
||||
phpunit_v7_5_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "8.5."* ]]; then
|
||||
phpunit_v8_5_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "9."* ]]; then
|
||||
phpunit_v9_shim
|
||||
phpunit_args=" --debug --verbose ${extra_args}"
|
||||
phpunit_args=" --debug --verbose --fail-on-risky ${extra_args}"
|
||||
elif [[ "${phpunit_version}" == "10."* ]]; then
|
||||
phpunit_v10_shim
|
||||
phpunit_args=" --display-incomplete --display-skipped --display-deprecations --display-errors --display-notices --display-warnings ${extra_args}"
|
||||
phpunit_args=" --display-incomplete --display-skipped --display-deprecations --display-errors --display-notices --display-warnings --fail-on-risky ${extra_args}"
|
||||
fi
|
||||
|
||||
if [[ "${CI_PHP_VERSION}" == "7.0" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user