diff --git a/packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/AddPackageToRequireComposerJsonFractorTest.php b/packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/AddPackageToRequireComposerJsonFractorTest.php index f61c427c..e17c2405 100644 --- a/packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/AddPackageToRequireComposerJsonFractorTest.php +++ b/packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/AddPackageToRequireComposerJsonFractorTest.php @@ -15,12 +15,12 @@ final class AddPackageToRequireComposerJsonFractorTest extends AbstractFractorTe public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, AddPackageToRequireComposerJsonFractor::class); + $this->assertThatRuleIsApplied(AddPackageToRequireComposerJsonFractor::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/Fixtures/composer.json b/packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/Fixtures/composer.json.fixture similarity index 100% rename from packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/Fixtures/composer.json rename to packages/fractor-composer-json/rules-tests/AddPackageToRequireComposerJsonFractor/Fixtures/composer.json.fixture diff --git a/packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/AddPackageToRequireDevComposerJsonFractorTest.php b/packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/AddPackageToRequireDevComposerJsonFractorTest.php index 573c1dd3..516c84c3 100644 --- a/packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/AddPackageToRequireDevComposerJsonFractorTest.php +++ b/packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/AddPackageToRequireDevComposerJsonFractorTest.php @@ -15,12 +15,12 @@ final class AddPackageToRequireDevComposerJsonFractorTest extends AbstractFracto public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, AddPackageToRequireDevComposerJsonFractor::class); + $this->assertThatRuleIsApplied(AddPackageToRequireDevComposerJsonFractor::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/Fixtures/composer.json b/packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/Fixtures/composer.json.fixture similarity index 100% rename from packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/Fixtures/composer.json rename to packages/fractor-composer-json/rules-tests/AddPackageToRequireDevComposerJsonFractor/Fixtures/composer.json.fixture diff --git a/packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/ChangePackageVersionComposerJsonFractorTest.php b/packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/ChangePackageVersionComposerJsonFractorTest.php index dccafebc..fe499054 100644 --- a/packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/ChangePackageVersionComposerJsonFractorTest.php +++ b/packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/ChangePackageVersionComposerJsonFractorTest.php @@ -15,12 +15,12 @@ final class ChangePackageVersionComposerJsonFractorTest extends AbstractFractorT public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, ChangePackageVersionComposerJsonFractor::class); + $this->assertThatRuleIsApplied(ChangePackageVersionComposerJsonFractor::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/Fixtures/composer.json b/packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/Fixtures/composer.json.fixture similarity index 100% rename from packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/Fixtures/composer.json rename to packages/fractor-composer-json/rules-tests/ChangePackageVersionComposerJsonFractor/Fixtures/composer.json.fixture diff --git a/packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/Fixtures/composer.json b/packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/Fixtures/composer.json.fixture similarity index 100% rename from packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/Fixtures/composer.json rename to packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/Fixtures/composer.json.fixture diff --git a/packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/RemovePackageComposerJsonFractorTest.php b/packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/RemovePackageComposerJsonFractorTest.php index 82f092dc..c77df03e 100644 --- a/packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/RemovePackageComposerJsonFractorTest.php +++ b/packages/fractor-composer-json/rules-tests/RemovePackageComposerJsonFractor/RemovePackageComposerJsonFractorTest.php @@ -15,12 +15,12 @@ final class RemovePackageComposerJsonFractorTest extends AbstractFractorTestCase public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, RemovePackageComposerJsonFractor::class); + $this->assertThatRuleIsApplied(RemovePackageComposerJsonFractor::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/Fixtures/composer.json b/packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/Fixtures/composer.json.fixture similarity index 100% rename from packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/Fixtures/composer.json rename to packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/Fixtures/composer.json.fixture diff --git a/packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/RenamePackageComposerJsonFractorTest.php b/packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/RenamePackageComposerJsonFractorTest.php index fce9be17..4c4aaf54 100644 --- a/packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/RenamePackageComposerJsonFractorTest.php +++ b/packages/fractor-composer-json/rules-tests/RenamePackageComposerJsonFractor/RenamePackageComposerJsonFractorTest.php @@ -15,12 +15,12 @@ final class RenamePackageComposerJsonFractorTest extends AbstractFractorTestCase public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, RenamePackageComposerJsonFractor::class); + $this->assertThatRuleIsApplied(RenamePackageComposerJsonFractor::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/Fixtures/composer.json b/packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/Fixtures/composer.json.fixture similarity index 100% rename from packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/Fixtures/composer.json rename to packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/Fixtures/composer.json.fixture diff --git a/packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/ReplacePackageAndVersionComposerJsonFractorTest.php b/packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/ReplacePackageAndVersionComposerJsonFractorTest.php index ed8b6891..7b3fcb27 100644 --- a/packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/ReplacePackageAndVersionComposerJsonFractorTest.php +++ b/packages/fractor-composer-json/rules-tests/ReplacePackageAndVersionComposerJsonFractor/ReplacePackageAndVersionComposerJsonFractorTest.php @@ -15,12 +15,12 @@ final class ReplacePackageAndVersionComposerJsonFractorTest extends AbstractFrac public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, ReplacePackageAndVersionComposerJsonFractor::class); + $this->assertThatRuleIsApplied(ReplacePackageAndVersionComposerJsonFractor::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.json.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-fluid/tests/FluidFileProcessor/Fixtures/fluid.html b/packages/fractor-fluid/tests/FluidFileProcessor/Fixtures/fluid.html.fixture similarity index 100% rename from packages/fractor-fluid/tests/FluidFileProcessor/Fixtures/fluid.html rename to packages/fractor-fluid/tests/FluidFileProcessor/Fixtures/fluid.html.fixture diff --git a/packages/fractor-fluid/tests/FluidFileProcessor/FluidFileProcessorTest.php b/packages/fractor-fluid/tests/FluidFileProcessor/FluidFileProcessorTest.php index 565ac57a..55aadf8e 100644 --- a/packages/fractor-fluid/tests/FluidFileProcessor/FluidFileProcessorTest.php +++ b/packages/fractor-fluid/tests/FluidFileProcessor/FluidFileProcessorTest.php @@ -15,12 +15,12 @@ final class FluidFileProcessorTest extends AbstractFractorTestCase public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, DummyFluidFractorRule::class); + $this->assertThatRuleIsApplied(DummyFluidFractorRule::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.html'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.html.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-rule-generator/src/Finder/TemplateFinder.php b/packages/fractor-rule-generator/src/Finder/TemplateFinder.php index e5e8eb0e..921d2e22 100644 --- a/packages/fractor-rule-generator/src/Finder/TemplateFinder.php +++ b/packages/fractor-rule-generator/src/Finder/TemplateFinder.php @@ -42,7 +42,7 @@ private function addRuleAndTestCase(string $fixtureFileExtension): array return [ __DIR__ . '/../../templates/rules/TYPO3__MajorPrefixed__/__Type__/__Name__.php', __DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/__Name__Test.php.inc', - __DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.' . $fixtureFileExtension, + __DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.' . $fixtureFileExtension . '.fixture', __DIR__ . '/../../templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/config/fractor.php.inc', ]; } diff --git a/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.html b/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.html.fixture similarity index 100% rename from packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.html rename to packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.html.fixture diff --git a/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.json b/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.json.fixture similarity index 100% rename from packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.json rename to packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.json.fixture diff --git a/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.typoscript b/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.typoscript rename to packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.typoscript.fixture diff --git a/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.xml b/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.xml.fixture similarity index 100% rename from packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.xml rename to packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.xml.fixture diff --git a/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.yaml b/packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.yaml.fixture similarity index 100% rename from packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.yaml rename to packages/fractor-rule-generator/templates/rules-tests/TYPO3__MajorPrefixed__/__Type__/__Test_Directory__/Fixtures/fixture.yaml.fixture diff --git a/packages/fractor-rule-generator/tests/Functional/Console/Command/GenerateRuleCommandTest.php b/packages/fractor-rule-generator/tests/Functional/Console/Command/GenerateRuleCommandTest.php index b51015a4..d7ba97c5 100644 --- a/packages/fractor-rule-generator/tests/Functional/Console/Command/GenerateRuleCommandTest.php +++ b/packages/fractor-rule-generator/tests/Functional/Console/Command/GenerateRuleCommandTest.php @@ -98,7 +98,9 @@ public function testCreateRuleForFlexFormWithoutChangelog(): void self::assertFileExists($basePathConfig . '/typo3-9999.php'); self::assertFileExists($basePathRules . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/config/fractor.php'); - self::assertFileExists($basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/Fixtures/fixture.xml'); + self::assertFileExists( + $basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/Fixtures/fixture.xml.fixture' + ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/MigrateFlexFormFractorTest.php.inc' ); @@ -141,7 +143,9 @@ public function testCreateRuleForFlexFormWithChangelog(): void self::assertFileExists($basePathConfig . '/typo3-9999.php'); self::assertFileExists($basePathRules . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/config/fractor.php'); - self::assertFileExists($basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/Fixtures/fixture.xml'); + self::assertFileExists( + $basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/Fixtures/fixture.xml.fixture' + ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/FlexForm/MigrateFlexFormFractor/MigrateFlexFormFractorTest.php.inc' ); @@ -176,7 +180,9 @@ public function testCreateRuleForFluidWithoutChangelog(): void self::assertFileExists($basePathConfig . '/typo3-9999.php'); self::assertFileExists($basePathRules . '/TYPO3v9999/Fluid/MigrateFluidFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/config/fractor.php'); - self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/Fixtures/fixture.html'); + self::assertFileExists( + $basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/Fixtures/fixture.html.fixture' + ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/MigrateFluidFractorTest.php.inc' ); @@ -216,7 +222,9 @@ public function testCreateRuleForFluidWithChangelog(): void self::assertFileExists($basePathConfig . '/typo3-9999.php'); self::assertFileExists($basePathRules . '/TYPO3v9999/Fluid/MigrateFluidFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/config/fractor.php'); - self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/Fixtures/fixture.html'); + self::assertFileExists( + $basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/Fixtures/fixture.html.fixture' + ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/Fluid/MigrateFluidFractor/MigrateFluidFractorTest.php.inc' ); @@ -253,7 +261,7 @@ public function testCreateRuleForTypoScriptWithoutChangelog(): void $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/config/fractor.php' ); self::assertFileExists( - $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/Fixtures/fixture.typoscript' + $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/Fixtures/fixture.typoscript.fixture' ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/MigrateTypoScriptFractorTest.php.inc' @@ -300,7 +308,7 @@ public function testCreateRuleForTypoScriptWithChangelog(): void $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/config/fractor.php' ); self::assertFileExists( - $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/Fixtures/fixture.typoscript' + $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/Fixtures/fixture.typoscript.fixture' ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/TypoScript/MigrateTypoScriptFractor/MigrateTypoScriptFractorTest.php.inc' @@ -335,7 +343,9 @@ public function testCreateRuleForYamlWithoutChangelog(): void self::assertFileExists($basePathConfig . '/typo3-9999.php'); self::assertFileExists($basePathRules . '/TYPO3v9999/Yaml/MigrateYamlFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/config/fractor.php'); - self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/Fixtures/fixture.yaml'); + self::assertFileExists( + $basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/Fixtures/fixture.yaml.fixture' + ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/MigrateYamlFractorTest.php.inc' ); @@ -375,7 +385,9 @@ public function testCreateRuleForYamlWithChangelog(): void self::assertFileExists($basePathConfig . '/typo3-9999.php'); self::assertFileExists($basePathRules . '/TYPO3v9999/Yaml/MigrateYamlFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/config/fractor.php'); - self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/Fixtures/fixture.yaml'); + self::assertFileExists( + $basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/Fixtures/fixture.yaml.fixture' + ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/Yaml/MigrateYamlFractor/MigrateYamlFractorTest.php.inc' ); @@ -410,7 +422,7 @@ public function testCreateRuleForComposerWithoutChangelog(): void self::assertFileExists($basePathRules . '/TYPO3v9999/Composer/MigrateComposerFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/config/fractor.php'); self::assertFileExists( - $basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/Fixtures/fixture.json' + $basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/Fixtures/fixture.json.fixture' ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/MigrateComposerFractorTest.php.inc' @@ -455,7 +467,7 @@ public function testCreateRuleForComposerWithChangelog(): void self::assertFileExists($basePathRules . '/TYPO3v9999/Composer/MigrateComposerFractor.php'); self::assertFileExists($basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/config/fractor.php'); self::assertFileExists( - $basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/Fixtures/fixture.json' + $basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/Fixtures/fixture.json.fixture' ); self::assertFileExists( $basePathRuleTests . '/TYPO3v9999/Composer/MigrateComposerFractor/MigrateComposerFractorTest.php.inc' diff --git a/packages/fractor-typoscript/tests/TypoScriptFileProcessor/Fixtures/fixture.typoscript b/packages/fractor-typoscript/tests/TypoScriptFileProcessor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/fractor-typoscript/tests/TypoScriptFileProcessor/Fixtures/fixture.typoscript rename to packages/fractor-typoscript/tests/TypoScriptFileProcessor/Fixtures/fixture.typoscript.fixture diff --git a/packages/fractor-typoscript/tests/TypoScriptFileProcessor/TypoScriptFileProcessorTest.php b/packages/fractor-typoscript/tests/TypoScriptFileProcessor/TypoScriptFileProcessorTest.php index deec0ac1..e5adaad4 100644 --- a/packages/fractor-typoscript/tests/TypoScriptFileProcessor/TypoScriptFileProcessorTest.php +++ b/packages/fractor-typoscript/tests/TypoScriptFileProcessor/TypoScriptFileProcessorTest.php @@ -14,12 +14,12 @@ class TypoScriptFileProcessorTest extends AbstractFractorTestCase public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, DummyTypoScriptFractorRule::class); + $this->assertThatRuleIsApplied(DummyTypoScriptFractorRule::class); } public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor-yaml/tests/YamlFileProcessor/Fixtures/fixture.yaml b/packages/fractor-yaml/tests/YamlFileProcessor/Fixtures/fixture.yaml.fixture similarity index 100% rename from packages/fractor-yaml/tests/YamlFileProcessor/Fixtures/fixture.yaml rename to packages/fractor-yaml/tests/YamlFileProcessor/Fixtures/fixture.yaml.fixture diff --git a/packages/fractor-yaml/tests/YamlFileProcessor/YamlFileProcessorTest.php b/packages/fractor-yaml/tests/YamlFileProcessor/YamlFileProcessorTest.php index 6c9d8aaa..13c88b01 100644 --- a/packages/fractor-yaml/tests/YamlFileProcessor/YamlFileProcessorTest.php +++ b/packages/fractor-yaml/tests/YamlFileProcessor/YamlFileProcessorTest.php @@ -15,12 +15,12 @@ final class YamlFileProcessorTest extends AbstractFractorTestCase public function test(string $filePath): void { $this->doTestFile($filePath); - $this->assertThatRuleIsApplied($filePath, DummyYamlFractorRule::class); + $this->assertThatRuleIsApplied(DummyYamlFractorRule::class); } public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.yaml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.yaml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/fractor/src/Testing/PHPUnit/AbstractFractorTestCase.php b/packages/fractor/src/Testing/PHPUnit/AbstractFractorTestCase.php index d939ee14..e7c84973 100644 --- a/packages/fractor/src/Testing/PHPUnit/AbstractFractorTestCase.php +++ b/packages/fractor/src/Testing/PHPUnit/AbstractFractorTestCase.php @@ -16,7 +16,9 @@ use a9f\Fractor\Testing\Contract\FractorTestInterface; use a9f\Fractor\Testing\Fixture\FixtureFileFinder; use a9f\Fractor\Testing\Fixture\FixtureSplitter; +use a9f\Fractor\Testing\PHPUnit\ValueObject\FractorTestResult; use Nette\Utils\FileSystem; +use Nette\Utils\Strings; use PHPUnit\Framework\TestCase; use Psr\Container\ContainerInterface; @@ -30,8 +32,6 @@ abstract class AbstractFractorTestCase extends TestCase implements FractorTestIn private FractorRunner $fractorRunner; - private ?string $copiedFile = null; - protected function setUp(): void { $this->bootContainer(); @@ -42,10 +42,8 @@ protected function setUp(): void protected function tearDown(): void { // clear temporary file - if (is_string($this->inputFilePath) && is_string($this->copiedFile)) { + if (\is_string($this->inputFilePath)) { FileSystem::delete($this->inputFilePath); - // restore copied file - FileSystem::rename($this->copiedFile, $this->inputFilePath); } unset($this->currentContainer); @@ -93,9 +91,6 @@ protected static function yieldFilesFromDirectory(string $directory, string $suf protected function doTestFile(string $fixtureFilePath): void { - $this->copiedFile = $fixtureFilePath . '.tmp'; - - FileSystem::copy($fixtureFilePath, $this->copiedFile); // prepare input file contents and expected file output contents $fixtureFileContents = FileSystem::read($fixtureFilePath); @@ -113,9 +108,8 @@ protected function doTestFile(string $fixtureFilePath): void $inputFilePath = $this->createInputFilePath($fixtureFilePath); // to remove later in tearDown() $this->inputFilePath = $inputFilePath; - - if ($fixtureFilePath === $this->copiedFile) { - throw new ShouldNotHappenException('Fixture file and copied file cannot be the same: ' . $fixtureFilePath); + if ($fixtureFilePath === $inputFilePath) { + throw new ShouldNotHappenException('Fixture file and input file cannot be the same: ' . $fixtureFilePath); } // write temp file @@ -127,9 +121,12 @@ protected function doTestFile(string $fixtureFilePath): void /** * @param class-string $rule */ - protected function assertThatRuleIsApplied(string $filePath, string $rule): void + protected function assertThatRuleIsApplied(string $rule): void { - $file = $this->fileCollector->getFileByPath($filePath); + if (! \is_string($this->inputFilePath)) { + self::fail('inputFilePath is not a string'); + } + $file = $this->fileCollector->getFileByPath($this->inputFilePath); self::assertInstanceOf(File::class, $file); self::assertEquals([AppliedRule::fromClassString($rule)], $file->getAppliedRules()); } @@ -148,32 +145,46 @@ private function doTestFileMatchesExpectedContent( string $fixtureFilePath ): void { // the file is now changed (if any rule matches) - $changedContents = $this->processFilePath($originalFilePath); + $fractorTestResult = $this->processFilePath($originalFilePath); + $changedContents = $fractorTestResult->getChangedContents(); $fixtureFilename = basename($fixtureFilePath); $failureMessage = sprintf('Failed on fixture file "%s"', $fixtureFilename); + // give more context about used rules in case of set testing + if (\count($fractorTestResult->getAppliedFractorRules()) > 0) { + $failureMessage .= \PHP_EOL . \PHP_EOL; + $failureMessage .= 'Applied Fractor rules:' . \PHP_EOL; + foreach ($fractorTestResult->getAppliedFractorRules() as $appliedFractorRule) { + $failureMessage .= ' * ' . $appliedFractorRule . \PHP_EOL; + } + } self::assertSame(trim($expectedFileContents), trim($changedContents), $failureMessage); } - private function processFilePath(string $filePath): string + private function processFilePath(string $filePath): FractorTestResult { $configurationFactory = $this->getService(ConfigurationFactory::class); $configuration = $configurationFactory->createForTests([$filePath]); - $this->fractorRunner->run(new NullOutput(), $configuration); + $processResult = $this->fractorRunner->run(new NullOutput(), $configuration); // return changed file contents - return FileSystem::read($filePath); + $changedFileContents = FileSystem::read($filePath); + + return new FractorTestResult($changedFileContents, $processResult); } private function createInputFilePath(string $fixtureFilePath): string { - $inputFileDirectory = dirname($fixtureFilePath); - - $trimmedFixtureFilePath = $fixtureFilePath; - - $fixtureBasename = pathinfo($trimmedFixtureFilePath, PATHINFO_BASENAME); + $inputFileDirectory = \dirname($fixtureFilePath); + // remove ".fixture" suffix + if (str_ends_with($fixtureFilePath, '.fixture')) { + $trimmedFixtureFilePath = Strings::substring($fixtureFilePath, 0, -8); + } else { + $trimmedFixtureFilePath = $fixtureFilePath; + } + $fixtureBasename = \pathinfo($trimmedFixtureFilePath, \PATHINFO_BASENAME); return $inputFileDirectory . '/' . $fixtureBasename; } } diff --git a/packages/fractor/src/Testing/PHPUnit/ValueObject/FractorTestResult.php b/packages/fractor/src/Testing/PHPUnit/ValueObject/FractorTestResult.php new file mode 100644 index 00000000..d273c288 --- /dev/null +++ b/packages/fractor/src/Testing/PHPUnit/ValueObject/FractorTestResult.php @@ -0,0 +1,34 @@ +changedContents; + } + + /** + * @return array + */ + public function getAppliedFractorRules(): array + { + $appliedRules = []; + foreach ($this->processResult->getFileDiffs() as $fileDiff) { + $appliedRules = \array_merge($appliedRules, $fileDiff->getAppliedRules()); + } + \sort($appliedRules); + return \array_unique($appliedRules); + } +} diff --git a/packages/fractor/tests/Application/FractorRunner/Fixtures/my_text_file.txt b/packages/fractor/tests/Application/FractorRunner/Fixtures/my_text_file.txt.fixture similarity index 100% rename from packages/fractor/tests/Application/FractorRunner/Fixtures/my_text_file.txt rename to packages/fractor/tests/Application/FractorRunner/Fixtures/my_text_file.txt.fixture diff --git a/packages/fractor/tests/Application/FractorRunner/FractorRunnerTest.php b/packages/fractor/tests/Application/FractorRunner/FractorRunnerTest.php index a204e920..24ea7426 100644 --- a/packages/fractor/tests/Application/FractorRunner/FractorRunnerTest.php +++ b/packages/fractor/tests/Application/FractorRunner/FractorRunnerTest.php @@ -18,7 +18,7 @@ public function test(string $filePath): void public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.txt'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.txt.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/Fixtures/fixture.html b/packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/Fixtures/fixture.html.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/Fixtures/fixture.html rename to packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/Fixtures/fixture.html.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/RemoveNoCacheHashAndUseCacheHashAttributeFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/RemoveNoCacheHashAndUseCacheHashAttributeFractorTest.php index 4f6862ee..2290eaff 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/RemoveNoCacheHashAndUseCacheHashAttributeFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v10/Fluid/RemoveNoCacheHashAndUseCacheHashAttributeFluidFractor/RemoveNoCacheHashAndUseCacheHashAttributeFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.html'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.html.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/RemoveUseCacheHashFromTypolinkTypoScriptFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/RemoveUseCacheHashFromTypolinkTypoScriptFractorTest.php index f8a7629e..f4043392 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/RemoveUseCacheHashFromTypolinkTypoScriptFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v10/TypoScript/RemoveUseCacheHashFromTypolinkTypoScriptFractor/RemoveUseCacheHashFromTypolinkTypoScriptFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/EmailFinisherYamlFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/EmailFinisherYamlFractorTest.php index dda4cae0..9158652a 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/EmailFinisherYamlFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/EmailFinisherYamlFractorTest.php @@ -18,7 +18,7 @@ public function test(string $filePath): void public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.yaml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.yaml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/my_form.form.yaml b/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/my_form.form.yaml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/my_form.form.yaml rename to packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/my_form.form.yaml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/some.form.yaml b/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/some.form.yaml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/some.form.yaml rename to packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/EmailFinisherYamlFractor/Fixtures/some.form.yaml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/Fixtures/form_setup.form.yaml b/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/Fixtures/form_setup.form.yaml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/Fixtures/form_setup.form.yaml rename to packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/Fixtures/form_setup.form.yaml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/TranslationFileYamlFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/TranslationFileYamlFractorTest.php index 93dc05a4..32bece6c 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/TranslationFileYamlFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v10/Yaml/TranslationFileYamlFractor/TranslationFileYamlFractorTest.php @@ -18,7 +18,7 @@ public function test(string $filePath): void public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.yaml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.yaml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/MigrateEmailFlagToEmailTypeFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/MigrateEmailFlagToEmailTypeFlexFormFractorTest.php index b926af58..3b9e1703 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/MigrateEmailFlagToEmailTypeFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEmailFlagToEmailTypeFlexFormFractor/MigrateEmailFlagToEmailTypeFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractorTest.php index b2a0ae79..5f3d4178 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractor/MigrateEvalIntAndDouble2ToTypeNumberFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/MigrateInternalTypeFolderToTypeFolderFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/MigrateInternalTypeFolderToTypeFolderFlexFormFractorTest.php index 25fae21c..bda12d27 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/MigrateInternalTypeFolderToTypeFolderFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateInternalTypeFolderToTypeFolderFlexFormFractor/MigrateInternalTypeFolderToTypeFolderFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/Fixtures/fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/Fixtures/fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/Fixtures/fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/Fixtures/fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/MigrateItemsIndexedKeysToAssociativeFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/MigrateItemsIndexedKeysToAssociativeFractorTest.php index 9737f94f..060d1e79 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/MigrateItemsIndexedKeysToAssociativeFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateItemsIndexedKeysToAssociativeFractor/MigrateItemsIndexedKeysToAssociativeFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/MigrateNullFlagFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/MigrateNullFlagFlexFormFractorTest.php index cec0e191..e910bf59 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/MigrateNullFlagFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateNullFlagFlexFormFractor/MigrateNullFlagFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractorTest.php index 50b9c4b3..51a872de 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractor/MigratePasswordAndSaltedPasswordToPasswordTypeFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/MigrateRenderTypeColorpickerToTypeColorFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/MigrateRenderTypeColorpickerToTypeColorFlexFormFractorTest.php index fedfcd0a..ee9730bf 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/MigrateRenderTypeColorpickerToTypeColorFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRenderTypeColorpickerToTypeColorFlexFormFractor/MigrateRenderTypeColorpickerToTypeColorFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/MigrateRequiredFlagFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/MigrateRequiredFlagFlexFormFractorTest.php index c64dfe12..675b8632 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/MigrateRequiredFlagFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateRequiredFlagFlexFormFractor/MigrateRequiredFlagFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/MigrateTypeNoneColsToSizeFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/MigrateTypeNoneColsToSizeFlexFormFractorTest.php index e3e62354..4953ac21 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/MigrateTypeNoneColsToSizeFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/MigrateTypeNoneColsToSizeFlexFormFractor/MigrateTypeNoneColsToSizeFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/Fixture.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/Fixture.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/Fixture.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/Fixture.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/flexforms_no_change.xml b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/flexforms_no_change.xml.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/flexforms_no_change.xml rename to packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/Fixtures/flexforms_no_change.xml.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/RemoveTceFormsDomElementFlexFormFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/RemoveTceFormsDomElementFlexFormFractorTest.php index 1a32def6..debc8ad7 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/RemoveTceFormsDomElementFlexFormFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/FlexForm/RemoveTceFormsDomElementFlexFormFractor/RemoveTceFormsDomElementFlexFormFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.xml.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/AbstractMessageGetSeverityFluidFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/AbstractMessageGetSeverityFluidFractorTest.php index 6a6320f3..9892b7db 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/AbstractMessageGetSeverityFluidFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/AbstractMessageGetSeverityFluidFractorTest.php @@ -18,7 +18,7 @@ public function test(string $filePath): void public static function provideData(): Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.html'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.html.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/Fixtures/fixture.html b/packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/Fixtures/fixture.html.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/Fixtures/fixture.html rename to packages/typo3-fractor/rules-tests/TYPO3v12/Fluid/AbstractMessageGetSeverityFluidFractor/Fixtures/fixture.html.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/RemoveConfigDisablePageExternalUrlFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/RemoveConfigDisablePageExternalUrlFractorTest.php index 22671f4a..e82c8f0e 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/RemoveConfigDisablePageExternalUrlFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDisablePageExternalUrlFractor/RemoveConfigDisablePageExternalUrlFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/RemoveConfigDoctypeSwitchFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/RemoveConfigDoctypeSwitchFractorTest.php index b6d3c98d..67b1b7e5 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/RemoveConfigDoctypeSwitchFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigDoctypeSwitchFractor/RemoveConfigDoctypeSwitchFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/RemoveConfigMetaCharsetFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/RemoveConfigMetaCharsetFractorTest.php index 8419560b..3d0ef74d 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/RemoveConfigMetaCharsetFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigMetaCharsetFractor/RemoveConfigMetaCharsetFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractorTest.php index c90ca174..cfcdd764 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractor/RemoveConfigSendCacheHeadersOnlyWhenLoginDeniedInBranchFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-keep.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-keep.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-keep.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-keep.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-remove.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-remove.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-remove.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/Fixtures/fixture-remove.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractorTest.php index 09cc1ff8..e8056a56 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractor/RemoveConfigSpamProtectEmailAddressesAsciiOptionFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/RemoveNewContentElementWizardOptionsFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/RemoveNewContentElementWizardOptionsFractorTest.php index 326db36c..d2516ad2 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/RemoveNewContentElementWizardOptionsFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveNewContentElementWizardOptionsFractor/RemoveNewContentElementWizardOptionsFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/RemoveWorkspaceModeOptionsFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/RemoveWorkspaceModeOptionsFractorTest.php index 6e1d4a0d..23b9c701 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/RemoveWorkspaceModeOptionsFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RemoveWorkspaceModeOptionsFractor/RemoveWorkspaceModeOptionsFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/RenameConfigXhtmlDoctypeToDoctypeFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/RenameConfigXhtmlDoctypeToDoctypeFractorTest.php index 8ff3d3a3..7c19a4b3 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/RenameConfigXhtmlDoctypeToDoctypeFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameConfigXhtmlDoctypeToDoctypeFractor/RenameConfigXhtmlDoctypeToDoctypeFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/RenameTcemainLinkHandlerMailKeyFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/RenameTcemainLinkHandlerMailKeyFractorTest.php index 4f2e35c0..56c5eb62 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/RenameTcemainLinkHandlerMailKeyFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/RenameTcemainLinkHandlerMailKeyFractor/RenameTcemainLinkHandlerMailKeyFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/UseConfigArrayForTSFEPropertiesFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/UseConfigArrayForTSFEPropertiesFractorTest.php index 0502ddfe..a0e16758 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/UseConfigArrayForTSFEPropertiesFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v12/TypoScript/UseConfigArrayForTSFEPropertiesFractor/UseConfigArrayForTSFEPropertiesFractorTest.php @@ -20,7 +20,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/RemoveOptionAlternateBgColorsFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/RemoveOptionAlternateBgColorsFractorTest.php index 32330b4b..3b63af1d 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/RemoveOptionAlternateBgColorsFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v7/TypoScript/RemoveOptionAlternateBgColorsFractor/RemoveOptionAlternateBgColorsFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string diff --git a/packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/Fixtures/fixture.typoscript b/packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/Fixtures/fixture.typoscript.fixture similarity index 100% rename from packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/Fixtures/fixture.typoscript rename to packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/Fixtures/fixture.typoscript.fixture diff --git a/packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/RemoveModNewPageWizOverrideWithExtensionFractorTest.php b/packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/RemoveModNewPageWizOverrideWithExtensionFractorTest.php index 3bf60218..42a08a8c 100644 --- a/packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/RemoveModNewPageWizOverrideWithExtensionFractorTest.php +++ b/packages/typo3-fractor/rules-tests/TYPO3v8/TypoScript/RemoveModNewPageWizOverrideWithExtensionFractor/RemoveModNewPageWizOverrideWithExtensionFractorTest.php @@ -17,7 +17,7 @@ public function test(string $filePath): void public static function provideData(): \Iterator { - return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript'); + return self::yieldFilesFromDirectory(__DIR__ . '/Fixtures', '*.typoscript.fixture'); } public function provideConfigFilePath(): ?string