php-unit updates

This commit is contained in:
Simon Sessingø
2021-03-23 15:38:10 +01:00
parent dbd8d381e7
commit 42633ec453
3 changed files with 25 additions and 11 deletions
+17 -3
View File
@@ -4,8 +4,22 @@ php:
- 7.4.2
before_script:
- curl -sS http://getcomposer.org/installer | php
- php composer.phar install --prefer-source --no-interaction
- mkdir -p _clover
- ls -al
script:
- ./vendor/bin/phpunit
- ./vendor/phpunit/phpunit/phpunit --configuration ./phpunit.xml ./tests
install:
# Install composer packages
- travis_retry composer install --no-interaction --no-suggest
# Install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar -O coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version
after_success:
# Submit coverage report to Coveralls servers, see .coveralls.yml
- travis_retry php coveralls.phar -v
# Submit coverage report to codecov.io
- bash <(curl -s https://codecov.io/bash)
+1 -1
View File
@@ -31,7 +31,7 @@
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"phpunit/phpunit": "^8.0",
"mockery/mockery": "^1"
},
"autoload": {
+7 -7
View File
@@ -9,16 +9,16 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
stopOnFailure="false">
<testsuites>
<testsuite name="SimpleRouter Test Suite">
<directory>tests/Pecee/SimpleRouter/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<coverage processUncoveredFiles="true"
ignoreDeprecatedCodeUnits="true">
<include>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
</phpunit>
</include>
</coverage>
</phpunit>