mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 11:42:13 +00:00
php-unit updates
This commit is contained in:
+17
-3
@@ -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
@@ -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": {
|
||||||
|
|||||||
+7
-7
@@ -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>
|
||||||
Reference in New Issue
Block a user