Skip to content

Commit

Permalink
Downdgrade to phpuni 9 for coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
gerd committed Jan 4, 2024
1 parent 0dd30ee commit a0e98eb
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ vendor
composer.lock
junit.xml
build/
.phpunit.cache/
.phpunit.result.cache
.phpunit.cache/
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ php:
- 7.3
- 8.1
- 8.2
- 8.3
before_script:
- composer require php-coveralls/php-coveralls
- composer update
script:
- vendor/bin/phpunit --coverage-clover build/coverage/clover.xml
- XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover build/coverage/clover.xml
after_script:
- php vendor/bin/coveralls -v
- php vendor/bin/php-coveralls -v
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
}
],
"require": {
"php": ">=7.2.0",
"php": ">=7.3.0",
"rmccue/requests": "^2.0"
},
"require-dev": {
"php": ">=7.2",
"phpunit/phpunit": "10.*"
"phpunit/phpunit": "9.*",
"php-coveralls/php-coveralls": "^2.7"
},
"autoload": {
"files": [ "src/functions.php"],
Expand Down
38 changes: 26 additions & 12 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="phpunit-bootstrap.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="All">
<directory>tests</directory>
<exclude>tests/unit/at/externet/eps_bank_transfer/BaseTest.php</exclude>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile=".phpunit.cache/test-results"
executionOrder="depends,defects"
forceCoversAnnotation="false"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
convertDeprecationsToExceptions="true"
failOnRisky="true"
failOnWarning="true"
verbose="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
<exclude>tests/unit/at/externet/eps_bank_transfer/BaseTest.php</exclude>
</testsuite>
</testsuites>

<coverage cacheDirectory=".phpunit.cache/code-coverage"
processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</phpunit>

0 comments on commit a0e98eb

Please sign in to comment.