Skip to content

Commit 1af4897

Browse files
committed
bump other configs
1 parent 8257cb3 commit 1af4897

File tree

4 files changed

+16
-31
lines changed

4 files changed

+16
-31
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ composer.lock
44

55
# phpunit 10+
66
/.phpunit.cache
7+
.phpunit.result.cache

.phpunit.result.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

phpunit.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<?xml version="1.0"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" cacheDirectory=".phpunit.cache">
3-
<testsuite name="all">
4-
<directory>tests</directory>
5-
</testsuite>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
7+
cacheDirectory=".phpunit.cache"
8+
>
9+
<testsuite name="all">
10+
<directory>tests</directory>
11+
</testsuite>
612
</phpunit>

rector.php

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,12 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6-
use Rector\PHPUnit\Set\PHPUnitSetList;
7-
use Rector\Set\ValueObject\LevelSetList;
8-
use Rector\Set\ValueObject\SetList;
96

10-
return static function (RectorConfig $rectorConfig): void {
11-
$rectorConfig->sets([
12-
PHPUnitSetList::PHPUNIT_100,
13-
SetList::CODE_QUALITY,
14-
SetList::DEAD_CODE,
15-
LevelSetList::UP_TO_PHP_81,
16-
SetList::CODING_STYLE,
17-
SetList::TYPE_DECLARATION,
18-
SetList::NAMING,
19-
SetList::PRIVATIZATION,
20-
SetList::EARLY_RETURN,
21-
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
22-
]);
23-
24-
$rectorConfig->paths([
25-
__DIR__ . '/src',
26-
__DIR__ . '/tests',
27-
]);
28-
29-
$rectorConfig->importNames();
30-
31-
$rectorConfig->skip([
7+
return RectorConfig::configure()
8+
->withPaths([__DIR__ . '/src', __DIR__ . '/tests'])
9+
->withPreparedSets(codeQuality: true, deadCode: true, naming: true, privatization: true, earlyReturn: true, codingStyle: true)
10+
->withRootFiles()
11+
->withSkip([
3212
'*/Source/*',
3313
'*/Fixture/*',
3414
]);
35-
};

0 commit comments

Comments
 (0)