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 - 7.4.2
before_script: before_script:
- curl -sS http://getcomposer.org/installer | php - mkdir -p _clover
- php composer.phar install --prefer-source --no-interaction - ls -al
script: 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": "*" "ext-json": "*"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^6.0", "phpunit/phpunit": "^8.0",
"mockery/mockery": "^1" "mockery/mockery": "^1"
}, },
"autoload": { "autoload": {
+6 -6
View File
@@ -9,16 +9,16 @@
convertNoticesToExceptions="true" convertNoticesToExceptions="true"
convertWarningsToExceptions="true" convertWarningsToExceptions="true"
processIsolation="false" processIsolation="false"
stopOnFailure="false" stopOnFailure="false">
syntaxCheck="false">
<testsuites> <testsuites>
<testsuite name="SimpleRouter Test Suite"> <testsuite name="SimpleRouter Test Suite">
<directory>tests/Pecee/SimpleRouter/</directory> <directory>tests/Pecee/SimpleRouter/</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <coverage processUncoveredFiles="true"
<whitelist processUncoveredFilesFromWhitelist="true"> ignoreDeprecatedCodeUnits="true">
<include>
<directory suffix=".php">src</directory> <directory suffix=".php">src</directory>
</whitelist> </include>
</filter> </coverage>
</phpunit> </phpunit>