Skip to content

Commit 279f21c

Browse files
maks-rafalkosebastianbergmann
authored andcommitted
Add $schema to infection.json5.dist, exclude files that breaks PHPUnit execution with Infection
See #5788
1 parent b18d5f2 commit 279f21c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

infection.json5.dist

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
{
2-
"$schema": "vendor/infection/infection/resources/schema.json",
2+
"$schema": "https://raw.githubusercontent.com/infection/infection/0.28.1/resources/schema.json",
33
"testFrameworkOptions": "--testsuite=unit",
44
"source": {
55
"directories": [
66
"src"
7+
],
8+
"excludes": [
9+
// causes errors during loading xml fies
10+
"Util/Xml/Xml.php",
11+
// causes syntax errors since invalid PHP code is generated
12+
"{Framework/MockObject/Generator/.*}",
13+
// causes issues with saving and reading result cache json files, failing phpunit
14+
"{Runner/ResultCache/.*}",
715
]
816
},
917
"mutators": {

0 commit comments

Comments
 (0)