Skip to content

Commit 6073b09

Browse files
committed
chore: exclude stubs from phpunit
Signed-off-by: Robin Appelman <[email protected]>
1 parent 531a62b commit 6073b09

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

β€Ž.php-cs-fixer.dist.php

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
->getFinder()
1515
->ignoreVCSIgnored(true)
1616
->notPath('build')
17+
->notPath('tests/stubs')
1718
->notPath('l10n')
1819
->notPath('src')
1920
->notPath('vendor')

β€Žcomposer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"post-update-cmd": [
2121
"@composer bin all update --ansi"
2222
],
23-
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -print0 | xargs -0 -n1 php -l",
23+
"lint": "find . -name \\*.php -not -path './vendor/*' -not -path './vendor-bin/*' -not -path './tests/stubs/*' -print0 | xargs -0 -n1 php -l",
2424
"cs:check": "php-cs-fixer fix --dry-run --diff",
2525
"cs:fix": "php-cs-fixer fix",
2626
"psalm": "psalm.phar --threads=1",

β€Žtests/phpunit.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</coverage>
2020
<testsuite name="Nextcloud - Group folders App Tests">
2121
<directory suffix=".php">.</directory>
22+
<exclude>./stubs/</exclude>
2223
</testsuite>
2324
<logging/>
2425
</phpunit>

0 commit comments

Comments
Β (0)