Skip to content

Commit

Permalink
Add $schema to infection.json5.dist, exclude files that breaks PHPUni…
Browse files Browse the repository at this point in the history
…t execution with Infection

See #5788
  • Loading branch information
maks-rafalko authored and sebastianbergmann committed Apr 3, 2024
1 parent b18d5f2 commit 279f21c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion infection.json5.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{
"$schema": "vendor/infection/infection/resources/schema.json",
"$schema": "https://raw.githubusercontent.com/infection/infection/0.28.1/resources/schema.json",
"testFrameworkOptions": "--testsuite=unit",
"source": {
"directories": [
"src"
],
"excludes": [
// causes errors during loading xml fies
"Util/Xml/Xml.php",
// causes syntax errors since invalid PHP code is generated
"{Framework/MockObject/Generator/.*}",
// causes issues with saving and reading result cache json files, failing phpunit
"{Runner/ResultCache/.*}",
]
},
"mutators": {
Expand Down

0 comments on commit 279f21c

Please sign in to comment.