forked from mautic/mautic
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrector-tests.php
More file actions
30 lines (27 loc) · 1 KB
/
rector-tests.php
File metadata and controls
30 lines (27 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\PHPUnit\PHPUnit60\Rector\ClassMethod\AddDoesNotPerformAssertionToNonAssertingTestRector;
use Rector\PHPUnit\PHPUnit60\Rector\MethodCall\GetMockBuilderGetMockToCreateMockRector;
use Rector\PHPUnit\PHPUnit80\Rector\MethodCall\SpecificAssertContainsRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app/bundles/*/Test',
__DIR__.'/app/bundles/*/Tests',
__DIR__.'/plugins/*/Test',
__DIR__.'/plugins/*/Tests',
])
->withCache(__DIR__.'/var/cache/rector-tests')
->withSets([
PHPUnitSetList::PHPUNIT_60,
PHPUnitSetList::PHPUNIT_90,
PHPUnitSetList::PHPUNIT_100,
])
->withRules([
SpecificAssertContainsRector::class,
GetMockBuilderGetMockToCreateMockRector::class,
])
->withSkip([
AddDoesNotPerformAssertionToNonAssertingTestRector::class, // Adds annotation where it does not belong to.
]);