Skip to content

Commit 64819ee

Browse files
authored
Merge pull request #7904 from kenjis/update-rector.php
chore: update rector.php
2 parents b38cec4 + 0276d89 commit 64819ee

File tree

120 files changed

+231
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+231
-3
lines changed

rector.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
3939
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
4040
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
41+
use Rector\PHPUnit\CodeQuality\Rector\Class_\ConstructClassMethodToSetUpTestCaseRector;
42+
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
4143
use Rector\PHPUnit\Set\PHPUnitSetList;
4244
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
4345
use Rector\Set\ValueObject\LevelSetList;
@@ -51,9 +53,8 @@
5153
$rectorConfig->sets([
5254
SetList::DEAD_CODE,
5355
LevelSetList::UP_TO_PHP_74,
54-
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
55-
PHPUnitSetList::PHPUNIT_80,
56-
PHPUnitSetList::REMOVE_MOCKS,
56+
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
57+
PHPUnitSetList::PHPUNIT_100,
5758
]);
5859

5960
$rectorConfig->parallel(240, 8, 1);
@@ -77,12 +78,20 @@
7778
__DIR__ . '/tests/_support',
7879
JsonThrowOnErrorRector::class,
7980
StringifyStrNeedlesRector::class,
81+
YieldDataProviderRector::class,
8082

8183
RemoveUnusedPrivateMethodRector::class => [
8284
// private method called via getPrivateMethodInvoker
8385
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php',
8486
],
8587

88+
ConstructClassMethodToSetUpTestCaseRector::class => [
89+
// breaks the constructor
90+
__DIR__ . '/system/Test/TestResponse.php',
91+
// See https://github.com/rectorphp/rector/issues/8188
92+
__DIR__ . '/system/Test/ControllerResponse.php',
93+
],
94+
8695
RemoveUnusedConstructorParamRector::class => [
8796
// there are deprecated parameters
8897
__DIR__ . '/system/Debug/Exceptions.php',

system/Autoloader/Autoloader.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
* // register the autoloader
5454
* $loader->register();
5555
* ```
56+
*
57+
* @see \CodeIgniter\Autoloader\AutoloaderTest
5658
*/
5759
class Autoloader
5860
{

system/Autoloader/FileLocator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
/**
1515
* Allows loading non-class files in a namespaced manner.
1616
* Works with Helpers, Views, etc.
17+
*
18+
* @see \CodeIgniter\Autoloader\FileLocatorTest
1719
*/
1820
class FileLocator
1921
{

system/CLI/CLI.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
* The wait() method is mostly testable, as long as you don't give it
3434
* an argument of "0".
3535
* These have been flagged to ignore for code coverage purposes.
36+
*
37+
* @see \CodeIgniter\CLI\CLITest
3638
*/
3739
class CLI
3840
{

system/CLI/Console.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
/**
1919
* Console
20+
*
21+
* @see \CodeIgniter\CLI\ConsoleTest
2022
*/
2123
class Console
2224
{

system/Cache/CacheFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* A factory for loading the desired
21+
*
22+
* @see \CodeIgniter\Cache\CacheFactoryTest
2123
*/
2224
class CacheFactory
2325
{

system/Cache/Handlers/BaseHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
/**
2121
* Base class for cache handling
22+
*
23+
* @see \CodeIgniter\Cache\Handlers\BaseHandlerTest
2224
*/
2325
abstract class BaseHandler implements CacheInterface
2426
{

system/Cache/Handlers/DummyHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
/**
1717
* Dummy cache handler
18+
*
19+
* @see \CodeIgniter\Cache\Handlers\DummyHandlerTest
1820
*/
1921
class DummyHandler extends BaseHandler
2022
{

system/Cache/Handlers/FileHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
/**
2020
* File system cache handler
21+
*
22+
* @see \CodeIgniter\Cache\Handlers\FileHandlerTest
2123
*/
2224
class FileHandler extends BaseHandler
2325
{

system/Cache/Handlers/MemcachedHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
/**
2222
* Mamcached cache handler
23+
*
24+
* @see \CodeIgniter\Cache\Handlers\MemcachedHandlerTest
2325
*/
2426
class MemcachedHandler extends BaseHandler
2527
{

0 commit comments

Comments
 (0)