Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ jobs:
- name: Phpunit
run: vendor/bin/phpunit

- name: Infection
run: vendor/bin/infection

- uses: actions/upload-artifact@v6
with:
name: Infection results ${{ matrix.php }}
path: infection.html

- name: cleanup after Infection
run: git clean -f

- name: Documentation integrity
run: |
# Generate ViewHelper documentation
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ composer.lock
vendor
examples/cache/
/Documentation-GENERATED-temp/
infection.html
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@
"ext-mbstring": "*"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"infection/extension-installer": true
}
},
"require-dev": {
"ext-json": "*",
"ext-simplexml": "*",
"friendsofphp/php-cs-fixer": "^3.59.3",
"infection/infection": "^0.31.1",
"phpstan/phpstan": "^2.1.17",
"phpstan/phpstan-phpunit": "^2.0.6",
"phpunit/phpunit": "^11.5.22 || ^12.2.1",
Expand Down
20 changes: 20 additions & 0 deletions infection.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "vendor/infection/infection/resources/schema.json",
"source": {
"directories": [
"src"
]
},
"mutators": {
"@default": true,
// for now we disable these mutators as they cause too many false positives:
"PublicVisibility": false,
"ProtectedVisibility": false,
"MBString": false,
},
"threads": "max",
"initialTestsPhpOptions": "-d xdebug.mode=coverage",
"logs": {
"html": "infection.html"
}
}
Loading