Skip to content

Commit 28d571b

Browse files
committed
refactor(rector.php): remove unused PHPUnit sets
- Removed unused PHPUnit sets 'PHPUNIT_91', 'PHPUNIT_EXCEPTION', 'REMOVE_MOCKS', and 'PHPUNIT_SPECIFIC_METHOD' from the configuration.
1 parent b0ff4b8 commit 28d571b

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@
173173
"md-lint": "lint-md --config .lintmdrc ./*.md ./.github/ ./docs/",
174174
"pest": "@php ./vendor/bin/pest --coverage",
175175
"pest-coverage": "@pest --coverage-html=./build/phpunit/ --coverage-clover=clover.xml --coverage",
176+
"pest-migrate-configuration": "@pest --migrate-configuration",
176177
"phpstan": "@php ./vendor/bin/phpstan analyse --ansi -v",
177178
"phpstan-baseline": "@phpstan --generate-baseline --allow-empty-baseline",
178179
"post-merge": [
@@ -193,6 +194,7 @@
193194
"style-lint": "@style-fix --diff --dry-run",
194195
"test": "@pest",
195196
"test-coverage": "@pest-coverage",
197+
"test-migrate-configuration": "@pest-migrate-configuration",
196198
"trufflehog": "trufflehog git https://github.com/guanguans/ai-commit --only-verified",
197199
"var-dump-server": "@php ./vendor/bin/var-dump-server --ansi -v",
198200
"vhs": [

composer.lock

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpunit.xml.dist

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,19 @@
1212
stopOnFailure="false"
1313
verbose="true"
1414
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
15+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
1516
>
17+
<coverage processUncoveredFiles="true">
18+
<include>
19+
<directory suffix=".php">./app</directory>
20+
</include>
21+
<exclude>
22+
<!--<directory>app/Contracts</directory>-->
23+
<file>app/Commands/BuildCommand.php</file>
24+
<file>app/Support/JsonFixer.php</file>
25+
<file>app/Support/helpers.php</file>
26+
</exclude>
27+
</coverage>
1628
<testsuites>
1729
<testsuite name="Feature">
1830
<directory suffix="Test.php">./tests/Feature</directory>
@@ -23,19 +35,6 @@
2335
<exclude>vendor/</exclude>
2436
</testsuite>
2537
</testsuites>
26-
27-
<filter>
28-
<whitelist processUncoveredFilesFromWhitelist="true">
29-
<directory suffix=".php">./app</directory>
30-
<exclude>
31-
<!--<directory>app/Contracts</directory>-->
32-
<file>app/Commands/BuildCommand.php</file>
33-
<file>app/Support/JsonFixer.php</file>
34-
<file>app/Support/helpers.php</file>
35-
</exclude>
36-
</whitelist>
37-
</filter>
38-
3938
<!--<listeners>
4039
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
4140
<arguments>

rector.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,7 @@
155155

156156
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
157157
PHPUnitSetList::PHPUNIT_90,
158-
PHPUnitSetList::PHPUNIT_91,
159-
// PHPUnitSetList::PHPUNIT80_DMS,
160158
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
161-
PHPUnitSetList::PHPUNIT_EXCEPTION,
162-
PHPUnitSetList::REMOVE_MOCKS,
163-
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
164159
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
165160
]);
166161

0 commit comments

Comments
 (0)