Skip to content

Commit 44f9bd6

Browse files
committed
chore: add and use composer test script, bump phpunit
1 parent 171fa88 commit 44f9bd6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ install:
1616
- composer install --prefer-dist
1717

1818
script:
19-
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
19+
- composer test:cov
2020

2121
after_success:
2222
- bash <(curl -s https://codecov.io/bash)

composer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
"php": ">=5.4"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5"
29+
"phpunit/phpunit": "^6.5 || ^7.5"
30+
},
31+
"scripts": {
32+
"test": "phpunit",
33+
"test:cov": "phpunit --coverage-text --coverage-clover coverage.xml --coverage-html vendor/cov"
3034
}
3135
}

phpunit.xml.dist

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
convertWarningsToExceptions="true"
99
processIsolation="false"
1010
stopOnFailure="false"
11-
syntaxCheck="false"
1211
bootstrap="vendor/autoload.php"
1312
>
1413
<testsuites>

0 commit comments

Comments
 (0)