Skip to content

Commit

Permalink
Revert newer version for dependencies for phpunit, phpstan and infect…
Browse files Browse the repository at this point in the history
…ion to preserve backwards compatibility
  • Loading branch information
frankvanhest committed Jan 26, 2024
1 parent cbe5b16 commit 3bdb5d1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 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 --coverage-text --coverage-clover=coverage.clover
run: vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.clover

- name: Infection
if: ${{ matrix.experimental == false }}
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
},
"require-dev": {
"beberlei/assert": "~v3.3",
"infection/infection": "^0.27",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"infection/infection": "^0.26",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest"
},
"autoload": {
Expand Down
37 changes: 21 additions & 16 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.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"
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>
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>
</phpunit>

0 comments on commit 3bdb5d1

Please sign in to comment.