Skip to content

Commit a3ea5f2

Browse files
PHPUnit 8 support
1 parent 80d4195 commit a3ea5f2

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/build/
22
/composer.lock
33
/vendor/
4+
.phpunit.result.cache
45

56
/.idea/

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
language: php
22
sudo: false
33
php:
4+
- 7.3
5+
- 7.2
46
- 7.1
5-
- 7.0
67
install:
7-
- composer install --prefer-dist
8+
- composer install --optimize-autoloader --prefer-dist --no-interaction
89
script:
910
- vendor/bin/phpunit --coverage-clover build/logs/clover.xml
1011
after_success:

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
}
1010
],
1111
"require": {
12-
"flow/jsonpath": "^0.3.1",
13-
"phpunit/phpunit": ">=6.0",
14-
"justinrainbow/json-schema": "^5.0",
15-
"php": ">=7.0"
12+
"php": "^7.0",
13+
"flow/jsonpath": "^0.3.4",
14+
"phpunit/phpunit": "^7.0",
15+
"justinrainbow/json-schema": "^5.0"
1616
},
1717
"require-dev": {
1818
"codeclimate/php-test-reporter": "dev-master"
@@ -27,5 +27,8 @@
2727
"vendor/phpunit/phpunit/src/Framework/Assert/Functions.php",
2828
"src/Functions.php"
2929
]
30+
},
31+
"config": {
32+
"sort-packages": true
3033
}
3134
}

phpunit.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
9-
mapTestClassNameToCoveredClassName="false"
109
timeoutForSmallTests="1"
1110
timeoutForMediumTests="10"
1211
timeoutForLargeTests="60">
@@ -21,11 +20,11 @@
2120
<logging>
2221
<log type="coverage-html" target="build/coverage" lowUpperBound="35"
2322
highLowerBound="70"/>
24-
<log type="junit" target="build/phpunit" logIncompleteSkipped="false"/>
23+
<log type="junit" target="build/phpunit"/>
2524
</logging>
2625
<filter>
2726
<whitelist processUncoveredFilesFromWhitelist="true">
2827
<directory suffix=".php">src</directory>
2928
</whitelist>
3029
</filter>
31-
</phpunit>
30+
</phpunit>

0 commit comments

Comments
 (0)