mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 13:28:18 +01:00
Move fixture requirement from command line to a test case (#5832)
This commit is contained in:
parent
ab1154f6c8
commit
9beb1da3c0
4
.github/workflows/code_analysis.yaml
vendored
4
.github/workflows/code_analysis.yaml
vendored
@ -13,10 +13,6 @@ jobs:
|
||||
name: 'Composer Validate'
|
||||
run: composer validate --strict
|
||||
|
||||
-
|
||||
name: Validate Fixtures
|
||||
run: bin/rector validate-fixture-suffix --ansi
|
||||
|
||||
# make sure skipped files have "skip_" prefix
|
||||
-
|
||||
name: Validate Fixtures skip file prefix
|
||||
|
6
.github/workflows/weekly_pull_requests.yaml
vendored
6
.github/workflows/weekly_pull_requests.yaml
vendored
@ -37,11 +37,9 @@ jobs:
|
||||
php-version: 7.4
|
||||
coverage: none
|
||||
|
||||
-
|
||||
run: composer install --no-progress --ansi
|
||||
- uses: "ramsey/composer-install@v1"
|
||||
|
||||
-
|
||||
run: ${{ matrix.actions.run }}
|
||||
- run: ${{ matrix.actions.run }}
|
||||
|
||||
# see https://github.com/peter-evans/create-pull-request
|
||||
-
|
||||
|
@ -109,6 +109,8 @@
|
||||
],
|
||||
"files": [
|
||||
"vendor/nette/forms/src/Forms/Controls/SubmitButton.php",
|
||||
"rules-tests/Renaming/Rector/Name/RenameClassRector/Source/DuplicatedClass.php",
|
||||
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/FixtureSharedShortName.php",
|
||||
"rules-tests/Restoration/Rector/Use_/RestoreFullyQualifiedNameRector/Source/ShortClassOnly.php",
|
||||
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/AnotherClass.php",
|
||||
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source/Foo.php",
|
||||
|
@ -116,7 +116,4 @@ return static function (ContainerConfigurator $containerConfigurator): void {
|
||||
'Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository',
|
||||
],
|
||||
]]);
|
||||
|
||||
$services->set(RemoveRepositoryFromEntityAnnotationRector::class);
|
||||
$services->set(ReplaceParentRepositoryCallsByRepositoryPropertyRector::class);
|
||||
};
|
||||
|
@ -23,11 +23,11 @@ final class PropertyMetadata
|
||||
*/
|
||||
private $flags;
|
||||
|
||||
public function __construct(string $name, ?Type $type, int $falgs)
|
||||
public function __construct(string $name, ?Type $type, int $flags)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->type = $type;
|
||||
$this->flags = $falgs;
|
||||
$this->flags = $flags;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
|
@ -138,9 +138,12 @@ abstract class AbstractRectorTestCase extends AbstractKernelTestCase
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<SmartFileInfo>
|
||||
*/
|
||||
protected function yieldFilesFromDirectory(string $directory, string $suffix = '*.php.inc'): Iterator
|
||||
{
|
||||
return StaticFixtureFinder::yieldDirectory($directory, $suffix);
|
||||
return StaticFixtureFinder::yieldDirectoryExclusively($directory, $suffix);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -624,3 +624,4 @@ parameters:
|
||||
- src/HttpKernel/RectorKernel.php
|
||||
|
||||
- '#Content of method "getIfNextReturn\(\)" is duplicated with method "getIfNextReturn\(\)" in "Rector\\EarlyReturn\\Rector\\If_\\ChangeAndIfToEarlyReturnRector" class\. Use unique content or service instead#'
|
||||
- '#Content of method "hasMethodParameter\(\)" is duplicated with method "hasMethodParameter\(\)" in "Rector\\Core\\NodeManipulator\\ClassDependencyManipulator" class\. Use unique content or service instead#'
|
||||
|
@ -18,6 +18,9 @@ final class ArgumentAdderRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -18,6 +18,9 @@ final class ArgumentDefaultValueReplacerRectorTest extends AbstractRectorTestCas
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -21,6 +21,9 @@ final class Symfony28Test extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureSymfony28');
|
||||
|
@ -18,6 +18,9 @@ final class SwapFuncCallArgumentsRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -21,6 +21,9 @@ final class RectorOrderTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ImplicitShortClassNameUseStatementRectorTest extends AbstractRectorT
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -18,6 +18,9 @@ final class ArrayToFluentCallRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -18,6 +18,9 @@ final class ModalToGetSetRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class AppUsesStaticCallToUseStatementRectorTest extends AbstractRectorTest
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ChangeSnakedFixtureNameToPascalTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ChangeCarbonSingularMethodCallToPluralRectorTest extends AbstractRec
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ChangeDiffForHumansArgsRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ArrayThisCallToThisMethodCallRectorTest extends AbstractRectorTestCa
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class CallableThisArrayToAnonymousFunctionRectorTest extends AbstractRecto
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -24,6 +24,9 @@ final class CombinedAssignRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SplitListAssignToSeparateLineRectorTest extends AbstractRectorTestCa
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyEmptyArrayCheckRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyDeMorganBinaryRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -20,6 +20,9 @@ final class Php8Test extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp8');
|
||||
|
@ -19,6 +19,9 @@ final class ThrowWithPreviousExceptionRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class DateTimeToDateTimeInterfaceRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -20,6 +20,9 @@ final class Php74Test extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74');
|
||||
|
@ -18,6 +18,9 @@ final class CompleteDynamicPropertiesRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class UnionTypeCompleteDynamicPropertiesRectorTest extends AbstractRectorT
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureUnionTypes');
|
||||
|
@ -19,6 +19,9 @@ final class JoinStringConcatRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class UseIdenticalOverEqualWithSameTypeRectorTest extends AbstractRectorTe
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class InlineIfToExplicitIfRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ForRepeatedCountToOwnVariableRectorTest extends AbstractRectorTestCa
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ForToForeachRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ForeachItemsAssignToEmptyArrayToAssignRectorTest extends AbstractRec
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ForeachToInArrayRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyForeachToArrayFilterRectorTest extends AbstractRectorTestCas
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyForeachToCoalescingRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class UnusedForeachValueToArrayKeysRectorTest extends AbstractRectorTestCa
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class AddPregQuoteDelimiterRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ArrayKeysAndInArrayToArrayKeyExistsRectorTest extends AbstractRector
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ArrayMergeOfNonArraysToSimpleArrayRectorTest extends AbstractRectorT
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ChangeArrayPushToArrayAssignRectorTest extends AbstractRectorTestCas
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class CompactToVariablesRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class InArrayAndArrayKeysToArrayKeyExistsRectorTest extends AbstractRector
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class IntvalToTypeCastRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class IsAWithStringWithThirdArgumentRectorTest extends AbstractRectorTestC
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class RemoveSoleValueSprintfRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SetTypeToCastRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyFuncGetArgsCountRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyInArrayValuesRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyRegexPatternRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyStrposLowerRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SingleInArrayToCompareRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class UnwrapSprintfOneArgumentRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class RemoveAlwaysTrueConditionSetInConstructorRectorTest extends Abstract
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class BooleanNotIdenticalToNotIdenticalRectorTest extends AbstractRectorTe
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class FlipTypeControlToUseExclusiveTypeRectorTest extends AbstractRectorTe
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class GetClassToInstanceOfRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyArraySearchRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyBoolIdenticalTrueRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyConditionsRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class StrlenZeroToIdenticalEmptyStringRectorTest extends AbstractRectorTes
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class CombineIfRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ConsecutiveNullCompareReturnsToNullCoalesceQueueRectorTest extends A
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ExplicitBoolCompareRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ShortenElseIfRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyIfElseToTernaryRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyIfIssetToNullCoalescingRectorTest extends AbstractRectorTest
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyIfNotNullReturnRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyIfReturnBoolRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class AbsolutizeRequireAndIncludePathRectorTest extends AbstractRectorTest
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class IssetOnPropertyObjectToPropertyExistsRectorTest extends AbstractRect
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class Php74Test extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/FixturePhp74');
|
||||
|
@ -19,6 +19,9 @@ final class AndAssignsToSeparateLinesRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class LogicalToBooleanRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -22,6 +22,9 @@ final class FixClassCaseSensitivityNameRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class NewStaticToNewSelfRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class CommonNotEqualRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -24,6 +24,9 @@ final class SimplifyUselessVariableRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SingularSwitchToIfRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ArrayKeyExistsTernaryThenValueToCoalescingRectorTest extends Abstrac
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyDuplicatedTernaryRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SimplifyTautologyTernaryRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SwitchNegatedTernaryRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class UnnecessaryTernaryExpressionRectorTest extends AbstractRectorTestCas
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ParamTypeToAssertTypeRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class MoveOutMethodCallInsideIfConditionRectorTest extends AbstractRectorT
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class VarInlineAnnotationToAssertRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class MoveVariableDeclarationNearReferenceRectorTest extends AbstractRecto
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class ManualJsonStringToJsonEncodeArrayRectorTest extends AbstractRectorTe
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class PHPStormVarAnnotationRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SplitDoubleAssignRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class CatchExceptionNameMatchingTypeRectorTest extends AbstractRectorTestC
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class SplitGroupedConstantsAndPropertiesRectorTest extends AbstractRectorT
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class VarConstantCommentRectorTest extends AbstractRectorTestCase
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -19,6 +19,9 @@ final class MakeInheritedMethodVisibilitySameAsParentRectorTest extends Abstract
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture');
|
||||
|
@ -21,6 +21,9 @@ final class SkipParentConstructOverrideInPHP72Test extends AbstractRectorTestCas
|
||||
$this->doTestFileInfo($fileInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Iterator<mixed, SmartFileInfo>
|
||||
*/
|
||||
public function provideData(): Iterator
|
||||
{
|
||||
return $this->yieldFilesFromDirectory(__DIR__ . '/FixtureForPhp72');
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user