-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e97dbec
commit 46ee9a1
Showing
9 changed files
with
79 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
vendor/rector/rector-phpunit/config/sets/annotations-to-attributes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
declare (strict_types=1); | ||
namespace RectorPrefix202211; | ||
|
||
use Rector\Config\RectorConfig; | ||
use Rector\Php80\Rector\Class_\AnnotationToAttributeRector; | ||
use Rector\Php80\ValueObject\AnnotationToAttribute; | ||
return static function (RectorConfig $rectorConfig) : void { | ||
$rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [ | ||
// @see https://github.com/sebastianbergmann/phpunit/issues/4502 | ||
new AnnotationToAttribute('after', 'PHPUnit\\Framework\\Attributes\\After'), | ||
new AnnotationToAttribute('afterClass', 'PHPUnit\\Framework\\Attributes\\AfterClass'), | ||
// new AnnotationToAttribute('backupGlobals', 'PHPUnit\Framework\Attributes\BackupGlobals'), | ||
// new AnnotationToAttribute('backupStaticAttributes', 'PHPUnit\Framework\Attributes\BackupStaticProperties'), | ||
new AnnotationToAttribute('before', 'PHPUnit\\Framework\\Attributes\\Before'), | ||
new AnnotationToAttribute('beforeClass', 'PHPUnit\\Framework\\Attributes\\BeforeClass'), | ||
new AnnotationToAttribute('codeCoverageIgnore', 'PHPUnit\\Framework\\Attributes\\CodeCoverageIgnore'), | ||
// new AnnotationToAttribute('covers', 'PHPUnit\Framework\Attributes\CoversClass'), | ||
// new AnnotationToAttribute('covers', 'PHPUnit\Framework\Attributes\CoversFunction'), | ||
new AnnotationToAttribute('coversNothing', 'PHPUnit\\Framework\\Attributes\\CoversNothing'), | ||
// new AnnotationToAttribute('dataProvider', 'PHPUnit\Framework\Attributes\DataProvider'), | ||
// new AnnotationToAttribute('dataProvider', 'PHPUnit\Framework\Attributes\DataProviderExternal'), | ||
// new AnnotationToAttribute('depends', 'PHPUnit\Framework\Attributes\Depends'), | ||
// new AnnotationToAttribute('depends', 'PHPUnit\Framework\Attributes\DependsExternal'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsExternalUsingDeepClone'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsExternalUsingShallowClone'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsOnClass'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsOnClassUsingDeepClone'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsOnClassUsingShallowClone'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsUsingDeepClone'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\DependsUsingShallowClone'), | ||
new AnnotationToAttribute('doesNotPerformAssertions', 'PHPUnit\\Framework\\Attributes\\DoesNotPerformAssertions'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\ExcludeGlobalVariableFromBackup'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\ExcludeStaticPropertyFromBackup'), | ||
// new AnnotationToAttribute('group', 'PHPUnit\Framework\Attributes\Group'), | ||
new AnnotationToAttribute('large', 'PHPUnit\\Framework\\Attributes\\Large'), | ||
new AnnotationToAttribute('medium', 'PHPUnit\\Framework\\Attributes\\Medium'), | ||
new AnnotationToAttribute('preCondition', 'PHPUnit\\Framework\\Attributes\\PostCondition'), | ||
new AnnotationToAttribute('postCondition', 'PHPUnit\\Framework\\Attributes\\PreCondition'), | ||
new AnnotationToAttribute('preserveGlobalState', 'PHPUnit\\Framework\\Attributes\\PreserveGlobalState'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresFunction'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresMethod'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresOperatingSystem'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresOperatingSystemFamily'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresPhp'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresPhpExtension'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresPhpunit'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RequiresSetting'), | ||
// new AnnotationToAttribute('PHPUnit\Framework\Attributes\RunClassInSeparateProcess'), | ||
new AnnotationToAttribute('runInSeparateProcess', 'PHPUnit\\Framework\\Attributes\\RunInSeparateProcess'), | ||
new AnnotationToAttribute('runTestsInSeparateProcesses', 'PHPUnit\\Framework\\Attributes\\RunTestsInSeparateProcesses'), | ||
new AnnotationToAttribute('small', 'PHPUnit\\Framework\\Attributes\\Small'), | ||
new AnnotationToAttribute('test', 'PHPUnit\\Framework\\Attributes\\Test'), | ||
]); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters