Skip to content

Commit 7deab22

Browse files
committed
Replaced infection/infection with a stricter roave/infection-static-analysis-plugin
This is: * still running `infection/infection`, but squishing many more mutants that are otherwise false-positives * "eat your own dogfood, @Ocramius!" * an improvement of the mutation score indicator Also took the chance to sort dependencies
1 parent c4f051e commit 7deab22

File tree

4 files changed

+68
-14
lines changed

4 files changed

+68
-14
lines changed

.github/workflows/mutation-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
run: "composer install --no-interaction --no-progress --no-suggest"
5454

5555
- name: "Infection"
56-
run: "./vendor/bin/infection --test-framework-options='--testsuite=unit'"
56+
run: "./vendor/bin/roave-infection-static-analysis-plugin --test-framework-options='--testsuite=unit'"
5757
env:
5858
INFECTION_BADGE_API_KEY: ${{ secrets.INFECTION_BADGE_API_KEY }}
5959
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}

composer.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@
2020
],
2121
"require": {
2222
"php": "~8.0.0",
23-
"laminas/laminas-code": "^4.4.2",
2423
"composer-runtime-api": "^2.1.0",
24+
"laminas/laminas-code": "^4.4.2",
2525
"webimpress/safe-writer": "^2.2.0"
2626
},
2727
"conflict": {
28-
"thecodingmachine/safe": "<1.3.3"
28+
"thecodingmachine/safe": "<1.3.3"
2929
},
3030
"require-dev": {
31-
"ext-phar": "*",
32-
"phpunit/phpunit": "^9.5.6",
33-
"squizlabs/php_codesniffer": "^3.6.0",
34-
"doctrine/coding-standard": "^9.0.0",
35-
"phpbench/phpbench": "^1.0.3",
36-
"infection/infection": "^0.23.0",
37-
"vimeo/psalm": "^4.8.1",
38-
"codelicia/xulieta": "^0.1.6"
31+
"ext-phar": "*",
32+
"codelicia/xulieta": "^0.1.6",
33+
"doctrine/coding-standard": "^9.0.0",
34+
"phpbench/phpbench": "^1.0.3",
35+
"phpunit/phpunit": "^9.5.6",
36+
"roave/infection-static-analysis-plugin": "^1.8",
37+
"squizlabs/php_codesniffer": "^3.6.0",
38+
"vimeo/psalm": "^4.8.1"
3939
},
4040
"suggest": {
4141
"ocramius/generated-hydrator": "To have very fast object to array to object conversion for ghost objects",
@@ -55,5 +55,8 @@
5555
"ProxyManagerTestAsset\\": "tests/ProxyManagerTestAsset",
5656
"Laminas\\Server\\": "tests/Stubbed/Laminas/Server"
5757
}
58+
},
59+
"config": {
60+
"sort-packages": true
5861
}
5962
}

composer.lock

Lines changed: 52 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

infection.json.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"branch": "master"
1212
}
1313
},
14-
"minMsi": 83.9,
15-
"minCoveredMsi": 88
14+
"minMsi": 84,
15+
"minCoveredMsi": 90
1616
}

0 commit comments

Comments
 (0)