Skip to content

Commit 42633ec

Browse files
committed
php-unit updates
1 parent dbd8d38 commit 42633ec

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

.travis.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,22 @@ php:
44
- 7.4.2
55

66
before_script:
7-
- curl -sS http://getcomposer.org/installer | php
8-
- php composer.phar install --prefer-source --no-interaction
7+
- mkdir -p _clover
8+
- ls -al
99

1010
script:
11-
- ./vendor/bin/phpunit
11+
- ./vendor/phpunit/phpunit/phpunit --configuration ./phpunit.xml ./tests
12+
13+
install:
14+
# Install composer packages
15+
- travis_retry composer install --no-interaction --no-suggest
16+
# Install coveralls.phar
17+
- 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
18+
- chmod +x coveralls.phar
19+
- php coveralls.phar --version
20+
21+
after_success:
22+
# Submit coverage report to Coveralls servers, see .coveralls.yml
23+
- travis_retry php coveralls.phar -v
24+
# Submit coverage report to codecov.io
25+
- bash <(curl -s https://codecov.io/bash)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"ext-json": "*"
3232
},
3333
"require-dev": {
34-
"phpunit/phpunit": "^6.0",
34+
"phpunit/phpunit": "^8.0",
3535
"mockery/mockery": "^1"
3636
},
3737
"autoload": {

phpunit.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
convertNoticesToExceptions="true"
1010
convertWarningsToExceptions="true"
1111
processIsolation="false"
12-
stopOnFailure="false"
13-
syntaxCheck="false">
12+
stopOnFailure="false">
1413
<testsuites>
1514
<testsuite name="SimpleRouter Test Suite">
1615
<directory>tests/Pecee/SimpleRouter/</directory>
1716
</testsuite>
1817
</testsuites>
19-
<filter>
20-
<whitelist processUncoveredFilesFromWhitelist="true">
18+
<coverage processUncoveredFiles="true"
19+
ignoreDeprecatedCodeUnits="true">
20+
<include>
2121
<directory suffix=".php">src</directory>
22-
</whitelist>
23-
</filter>
24-
</phpunit>
22+
</include>
23+
</coverage>
24+
</phpunit>

0 commit comments

Comments
 (0)