Skip to content

Commit

Permalink
Update PHPUnit to 10.5 (#21)
Browse files Browse the repository at this point in the history
* Update PHPUnit to 10.5

* Update PHPUnit to 10.5
  • Loading branch information
frankvanhest authored Jan 26, 2024
1 parent a638d46 commit cbe5b16
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: vendor/bin/phpstan analyze -c phpstan.neon.dist

- name: PHPUnit
run: vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.clover
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

- name: Infection
if: ${{ matrix.experimental == false }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"beberlei/assert": "~v3.3",
"infection/infection": "^0.27",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^10.5",
"roave/security-advisories": "dev-latest"
},
"autoload": {
Expand Down
37 changes: 16 additions & 21 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResultFile=".phpunit.cache/test-results"
executionOrder="depends,defects"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
verbose="true">

<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>

<coverage cacheDirectory=".phpunit.cache/code-coverage"
processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix="Test.php">src/</directory>
</exclude>
</coverage>
cacheDirectory=".phpunit.cache"
beStrictAboutCoverageMetadata="true">
<testsuites>
<testsuite name="default">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
<exclude>
<directory suffix="Test.php">src/</directory>
</exclude>
</source>
</phpunit>

0 comments on commit cbe5b16

Please sign in to comment.