diff --git a/.phpstan/ExceptionTypeResolver.php b/.phpstan/ExceptionTypeResolver.php index 5c53133f..7a618d90 100644 --- a/.phpstan/ExceptionTypeResolver.php +++ b/.phpstan/ExceptionTypeResolver.php @@ -17,7 +17,7 @@ public function __construct(private DefaultExceptionTypeResolver $defaultExcepti public function isCheckedException(string $className, Scope $scope): bool { $namespace = $scope->getNamespace(); - if (null !== $namespace && str_starts_with($namespace, 'TwigCsFixer\Tests')) { + if (null !== $namespace && str_starts_with($namespace, 'TwigCsFixer\Test')) { return false; } diff --git a/composer-dependency-analyser.php b/composer-dependency-analyser.php index 8e2638cb..1d9b833f 100644 --- a/composer-dependency-analyser.php +++ b/composer-dependency-analyser.php @@ -9,6 +9,11 @@ return $config ->addPathToScan(__DIR__.'/bin/twig-cs-fixer', isDev: false) + ->ignoreErrorsOnPackageAndPath( + 'phpunit/phpunit', + __DIR__.'/src/Test/AbstractRuleTestCase.php', + [ErrorType::DEV_DEPENDENCY_IN_PROD] + ) ->ignoreErrorsOnPackageAndPath( 'symfony/twig-bridge', __DIR__.'/src/Environment/StubbedEnvironment.php', diff --git a/tests/Rules/AbstractRuleTestCase.php b/src/Test/AbstractRuleTestCase.php similarity index 97% rename from tests/Rules/AbstractRuleTestCase.php rename to src/Test/AbstractRuleTestCase.php index f12ece70..da67c33b 100644 --- a/tests/Rules/AbstractRuleTestCase.php +++ b/src/Test/AbstractRuleTestCase.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace TwigCsFixer\Tests\Rules; +namespace TwigCsFixer\Test; use PHPUnit\Framework\TestCase; use TwigCsFixer\Environment\StubbedEnvironment; @@ -12,7 +12,6 @@ use TwigCsFixer\Ruleset\Ruleset; use TwigCsFixer\Runner\Fixer; use TwigCsFixer\Runner\Linter; -use TwigCsFixer\Tests\TestHelper; use TwigCsFixer\Token\Tokenizer; abstract class AbstractRuleTestCase extends TestCase diff --git a/tests/TestHelper.php b/src/Test/TestHelper.php similarity index 98% rename from tests/TestHelper.php rename to src/Test/TestHelper.php index 1bc9100d..c2958163 100644 --- a/tests/TestHelper.php +++ b/src/Test/TestHelper.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace TwigCsFixer\Tests; +namespace TwigCsFixer\Test; final class TestHelper { diff --git a/tests/Binary/TwigCsFixerTest.php b/tests/Binary/TwigCsFixerTest.php index 07b16971..6918065f 100644 --- a/tests/Binary/TwigCsFixerTest.php +++ b/tests/Binary/TwigCsFixerTest.php @@ -7,8 +7,8 @@ use Composer\InstalledVersions; use Symfony\Component\Process\Process; use TwigCsFixer\Console\Application; +use TwigCsFixer\Test\TestHelper; use TwigCsFixer\Tests\FileTestCase; -use TwigCsFixer\Tests\TestHelper; /** * @group skip-windows diff --git a/tests/Config/Fixtures/directoryWithCustomCacheFile/.twig-cs-fixer.php b/tests/Config/Fixtures/directoryWithCustomCacheFile/.twig-cs-fixer.php index c6df8240..ff7e3179 100644 --- a/tests/Config/Fixtures/directoryWithCustomCacheFile/.twig-cs-fixer.php +++ b/tests/Config/Fixtures/directoryWithCustomCacheFile/.twig-cs-fixer.php @@ -3,7 +3,7 @@ declare(strict_types=1); use TwigCsFixer\Config\Config; -use TwigCsFixer\Tests\TestHelper; +use TwigCsFixer\Test\TestHelper; $config = new Config('Custom'); $config->setCacheFile(TestHelper::getOsPath(__DIR__.'/.twig-cs-fixer.cache')); diff --git a/tests/Console/Command/TwigCsFixerCommandTest.php b/tests/Console/Command/TwigCsFixerCommandTest.php index 1c724411..2189ecbd 100644 --- a/tests/Console/Command/TwigCsFixerCommandTest.php +++ b/tests/Console/Command/TwigCsFixerCommandTest.php @@ -13,8 +13,8 @@ use TwigCsFixer\Cache\Signature; use TwigCsFixer\Config\Config; use TwigCsFixer\Console\Command\TwigCsFixerCommand; +use TwigCsFixer\Test\TestHelper; use TwigCsFixer\Tests\FileTestCase; -use TwigCsFixer\Tests\TestHelper; final class TwigCsFixerCommandTest extends FileTestCase { diff --git a/tests/FileTestCase.php b/tests/FileTestCase.php index 7d82faa8..d21111b3 100644 --- a/tests/FileTestCase.php +++ b/tests/FileTestCase.php @@ -7,6 +7,7 @@ use PHPUnit\Framework\TestCase; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; +use TwigCsFixer\Test\TestHelper; use Webmozart\Assert\Assert; abstract class FileTestCase extends TestCase diff --git a/tests/Report/Reporter/CheckstyleReporterTest.php b/tests/Report/Reporter/CheckstyleReporterTest.php index b2c9ef94..e918e14c 100644 --- a/tests/Report/Reporter/CheckstyleReporterTest.php +++ b/tests/Report/Reporter/CheckstyleReporterTest.php @@ -11,7 +11,7 @@ use TwigCsFixer\Report\Reporter\CheckstyleReporter; use TwigCsFixer\Report\Violation; use TwigCsFixer\Report\ViolationId; -use TwigCsFixer\Tests\TestHelper; +use TwigCsFixer\Test\TestHelper; final class CheckstyleReporterTest extends TestCase { diff --git a/tests/Report/Reporter/GithubReporterTest.php b/tests/Report/Reporter/GithubReporterTest.php index 99d5d47e..71dd9cc6 100644 --- a/tests/Report/Reporter/GithubReporterTest.php +++ b/tests/Report/Reporter/GithubReporterTest.php @@ -11,7 +11,7 @@ use TwigCsFixer\Report\Reporter\GithubReporter; use TwigCsFixer\Report\Violation; use TwigCsFixer\Report\ViolationId; -use TwigCsFixer\Tests\TestHelper; +use TwigCsFixer\Test\TestHelper; final class GithubReporterTest extends TestCase { diff --git a/tests/Report/Reporter/JUnitReporterTest.php b/tests/Report/Reporter/JUnitReporterTest.php index 5342d2a2..c80d90d6 100644 --- a/tests/Report/Reporter/JUnitReporterTest.php +++ b/tests/Report/Reporter/JUnitReporterTest.php @@ -11,7 +11,7 @@ use TwigCsFixer\Report\Reporter\JUnitReporter; use TwigCsFixer\Report\Violation; use TwigCsFixer\Report\ViolationId; -use TwigCsFixer\Tests\TestHelper; +use TwigCsFixer\Test\TestHelper; final class JUnitReporterTest extends TestCase { diff --git a/tests/Report/Reporter/NullReporterTest.php b/tests/Report/Reporter/NullReporterTest.php index 626ab0df..95cef535 100644 --- a/tests/Report/Reporter/NullReporterTest.php +++ b/tests/Report/Reporter/NullReporterTest.php @@ -10,7 +10,7 @@ use TwigCsFixer\Report\Report; use TwigCsFixer\Report\Reporter\NullReporter; use TwigCsFixer\Report\Violation; -use TwigCsFixer\Tests\TestHelper; +use TwigCsFixer\Test\TestHelper; final class NullReporterTest extends TestCase { diff --git a/tests/Report/Reporter/TextReporterTest.php b/tests/Report/Reporter/TextReporterTest.php index c7956306..cd832776 100644 --- a/tests/Report/Reporter/TextReporterTest.php +++ b/tests/Report/Reporter/TextReporterTest.php @@ -11,7 +11,7 @@ use TwigCsFixer\Report\Reporter\TextReporter; use TwigCsFixer\Report\Violation; use TwigCsFixer\Report\ViolationId; -use TwigCsFixer\Tests\TestHelper; +use TwigCsFixer\Test\TestHelper; final class TextReporterTest extends TestCase { diff --git a/tests/Rules/Delimiter/BlockNameSpacing/BlockNameSpacingRuleTest.php b/tests/Rules/Delimiter/BlockNameSpacing/BlockNameSpacingRuleTest.php index f683f2af..03757f40 100644 --- a/tests/Rules/Delimiter/BlockNameSpacing/BlockNameSpacingRuleTest.php +++ b/tests/Rules/Delimiter/BlockNameSpacing/BlockNameSpacingRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Delimiter\BlockNameSpacing; use TwigCsFixer\Rules\Delimiter\BlockNameSpacingRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class BlockNameSpacingRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Delimiter/DelimiterSpacing/DelimiterSpacingRuleTest.php b/tests/Rules/Delimiter/DelimiterSpacing/DelimiterSpacingRuleTest.php index 26c976d0..4970a9de 100644 --- a/tests/Rules/Delimiter/DelimiterSpacing/DelimiterSpacingRuleTest.php +++ b/tests/Rules/Delimiter/DelimiterSpacing/DelimiterSpacingRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Delimiter\DelimiterSpacing; use TwigCsFixer\Rules\Delimiter\DelimiterSpacingRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class DelimiterSpacingRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/File/DirectoryName/DirectoryNameRuleTest.php b/tests/Rules/File/DirectoryName/DirectoryNameRuleTest.php index 7ed78d74..e2930157 100644 --- a/tests/Rules/File/DirectoryName/DirectoryNameRuleTest.php +++ b/tests/Rules/File/DirectoryName/DirectoryNameRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\File\DirectoryName; use TwigCsFixer\Rules\File\DirectoryNameRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class DirectoryNameRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/File/FileExtension/FileExtensionRuleTest.php b/tests/Rules/File/FileExtension/FileExtensionRuleTest.php index 87409793..2053f92a 100644 --- a/tests/Rules/File/FileExtension/FileExtensionRuleTest.php +++ b/tests/Rules/File/FileExtension/FileExtensionRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\File\FileExtension; use TwigCsFixer\Rules\File\FileExtensionRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class FileExtensionRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/File/FileName/FileNameRuleTest.php b/tests/Rules/File/FileName/FileNameRuleTest.php index 1d9c4b35..55c3ee9e 100644 --- a/tests/Rules/File/FileName/FileNameRuleTest.php +++ b/tests/Rules/File/FileName/FileNameRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\File\FileName; use TwigCsFixer\Rules\File\FileNameRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class FileNameRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Function/IncludeFunction/IncludeFunctionRuleTest.php b/tests/Rules/Function/IncludeFunction/IncludeFunctionRuleTest.php index 9512092e..9c064639 100644 --- a/tests/Rules/Function/IncludeFunction/IncludeFunctionRuleTest.php +++ b/tests/Rules/Function/IncludeFunction/IncludeFunctionRuleTest.php @@ -6,7 +6,7 @@ use TwigCsFixer\Rules\Function\IncludeFunctionRule; use TwigCsFixer\Rules\Punctuation\PunctuationSpacingRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class IncludeFunctionRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Function/NamedArgumentSeparatorRuleTest.php b/tests/Rules/Function/NamedArgumentSeparatorRuleTest.php index ad7e8121..b1772ff8 100644 --- a/tests/Rules/Function/NamedArgumentSeparatorRuleTest.php +++ b/tests/Rules/Function/NamedArgumentSeparatorRuleTest.php @@ -7,7 +7,7 @@ use Composer\InstalledVersions; use Composer\Semver\VersionParser; use TwigCsFixer\Rules\Function\NamedArgumentSeparatorRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class NamedArgumentSeparatorRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Function/NamedArgumentSpacing/NamedArgumentSpacingRuleTest.php b/tests/Rules/Function/NamedArgumentSpacing/NamedArgumentSpacingRuleTest.php index f3fd9e96..ce545484 100644 --- a/tests/Rules/Function/NamedArgumentSpacing/NamedArgumentSpacingRuleTest.php +++ b/tests/Rules/Function/NamedArgumentSpacing/NamedArgumentSpacingRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Function\NamedArgumentSpacing; use TwigCsFixer\Rules\Function\NamedArgumentSpacingRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class NamedArgumentSpacingRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Node/ForbiddenBlock/ForbiddenBlockRuleTest.php b/tests/Rules/Node/ForbiddenBlock/ForbiddenBlockRuleTest.php index 09a8bc2b..9954a9fe 100644 --- a/tests/Rules/Node/ForbiddenBlock/ForbiddenBlockRuleTest.php +++ b/tests/Rules/Node/ForbiddenBlock/ForbiddenBlockRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Node\ForbiddenBlock; use TwigCsFixer\Rules\Node\ForbiddenBlockRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class ForbiddenBlockRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Node/ForbiddenFilter/ForbiddenFilterRuleTest.php b/tests/Rules/Node/ForbiddenFilter/ForbiddenFilterRuleTest.php index e8f5fbdb..e56fbc2f 100644 --- a/tests/Rules/Node/ForbiddenFilter/ForbiddenFilterRuleTest.php +++ b/tests/Rules/Node/ForbiddenFilter/ForbiddenFilterRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Node\ForbiddenFilter; use TwigCsFixer\Rules\Node\ForbiddenFilterRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class ForbiddenFilterRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Node/ForbiddenFunction/ForbiddenFunctionRuleTest.php b/tests/Rules/Node/ForbiddenFunction/ForbiddenFunctionRuleTest.php index 0fd7d1ff..09051b47 100644 --- a/tests/Rules/Node/ForbiddenFunction/ForbiddenFunctionRuleTest.php +++ b/tests/Rules/Node/ForbiddenFunction/ForbiddenFunctionRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Node\ForbiddenFunction; use TwigCsFixer\Rules\Node\ForbiddenFunctionRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class ForbiddenFunctionRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.php b/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.php index ac46f5a5..2e801b91 100644 --- a/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.php +++ b/tests/Rules/Node/ValidConstantFunction/ValidConstantFunctionRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Node\ValidConstantFunction; use TwigCsFixer\Rules\Node\ValidConstantFunctionRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class ValidConstantFunctionRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Operator/OperatorNameSpacing/OperatorNameSpacingRuleTest.php b/tests/Rules/Operator/OperatorNameSpacing/OperatorNameSpacingRuleTest.php index e31f6c3d..227e6e4b 100644 --- a/tests/Rules/Operator/OperatorNameSpacing/OperatorNameSpacingRuleTest.php +++ b/tests/Rules/Operator/OperatorNameSpacing/OperatorNameSpacingRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Operator\OperatorNameSpacing; use TwigCsFixer\Rules\Operator\OperatorNameSpacingRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class OperatorNameSpacingRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Operator/OperatorSpacing/OperatorSpacingRuleTest.php b/tests/Rules/Operator/OperatorSpacing/OperatorSpacingRuleTest.php index 6ecfbba3..c6d57a6e 100644 --- a/tests/Rules/Operator/OperatorSpacing/OperatorSpacingRuleTest.php +++ b/tests/Rules/Operator/OperatorSpacing/OperatorSpacingRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Operator\OperatorSpacing; use TwigCsFixer\Rules\Operator\OperatorSpacingRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class OperatorSpacingRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Punctuation/PunctuationSpacing/PunctuationSpacingRuleTest.php b/tests/Rules/Punctuation/PunctuationSpacing/PunctuationSpacingRuleTest.php index 26fa45ca..66176b88 100644 --- a/tests/Rules/Punctuation/PunctuationSpacing/PunctuationSpacingRuleTest.php +++ b/tests/Rules/Punctuation/PunctuationSpacing/PunctuationSpacingRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Punctuation\PunctuationSpacing; use TwigCsFixer\Rules\Punctuation\PunctuationSpacingRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class PunctuationSpacingRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Punctuation/TrailingCommaMultiLine/TrailingCommaMultiLineRuleTest.php b/tests/Rules/Punctuation/TrailingCommaMultiLine/TrailingCommaMultiLineRuleTest.php index fe5f643e..ccf50362 100644 --- a/tests/Rules/Punctuation/TrailingCommaMultiLine/TrailingCommaMultiLineRuleTest.php +++ b/tests/Rules/Punctuation/TrailingCommaMultiLine/TrailingCommaMultiLineRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Punctuation\TrailingCommaMultiLine; use TwigCsFixer\Rules\Punctuation\TrailingCommaMultiLineRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class TrailingCommaMultiLineRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Punctuation/TrailingCommaSingleLine/TrailingCommaSingleLineRuleTest.php b/tests/Rules/Punctuation/TrailingCommaSingleLine/TrailingCommaSingleLineRuleTest.php index d6eb8379..44155428 100644 --- a/tests/Rules/Punctuation/TrailingCommaSingleLine/TrailingCommaSingleLineRuleTest.php +++ b/tests/Rules/Punctuation/TrailingCommaSingleLine/TrailingCommaSingleLineRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Punctuation\TrailingCommaSingleLine; use TwigCsFixer\Rules\Punctuation\TrailingCommaSingleLineRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class TrailingCommaSingleLineRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/String/HashQuote/HashQuoteRuleTest.php b/tests/Rules/String/HashQuote/HashQuoteRuleTest.php index efddb26f..1281b8bf 100644 --- a/tests/Rules/String/HashQuote/HashQuoteRuleTest.php +++ b/tests/Rules/String/HashQuote/HashQuoteRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\String\HashQuote; use TwigCsFixer\Rules\String\HashQuoteRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class HashQuoteRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/String/SimpleQuote/SingleQuoteRuleTest.php b/tests/Rules/String/SimpleQuote/SingleQuoteRuleTest.php index f759e8c5..956c9028 100644 --- a/tests/Rules/String/SimpleQuote/SingleQuoteRuleTest.php +++ b/tests/Rules/String/SimpleQuote/SingleQuoteRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\String\SimpleQuote; use TwigCsFixer\Rules\String\SingleQuoteRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class SingleQuoteRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Variable/VariableName/VariableNameRuleTest.php b/tests/Rules/Variable/VariableName/VariableNameRuleTest.php index 1c53a527..648e4f00 100644 --- a/tests/Rules/Variable/VariableName/VariableNameRuleTest.php +++ b/tests/Rules/Variable/VariableName/VariableNameRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Variable\VariableName; use TwigCsFixer\Rules\Variable\VariableNameRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class VariableNameRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Whitespace/BlankEOF/BlankEOFRuleTest.php b/tests/Rules/Whitespace/BlankEOF/BlankEOFRuleTest.php index 5922ac6f..4c5f5439 100644 --- a/tests/Rules/Whitespace/BlankEOF/BlankEOFRuleTest.php +++ b/tests/Rules/Whitespace/BlankEOF/BlankEOFRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Whitespace\BlankEOF; use TwigCsFixer\Rules\Whitespace\BlankEOFRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class BlankEOFRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Whitespace/EmptyLines/EmptyLinesRuleTest.php b/tests/Rules/Whitespace/EmptyLines/EmptyLinesRuleTest.php index 58b93611..d4efafb4 100644 --- a/tests/Rules/Whitespace/EmptyLines/EmptyLinesRuleTest.php +++ b/tests/Rules/Whitespace/EmptyLines/EmptyLinesRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Whitespace\EmptyLines; use TwigCsFixer\Rules\Whitespace\EmptyLinesRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class EmptyLinesRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Whitespace/Indent/IndentRuleTest.php b/tests/Rules/Whitespace/Indent/IndentRuleTest.php index 14886678..246b5ab6 100644 --- a/tests/Rules/Whitespace/Indent/IndentRuleTest.php +++ b/tests/Rules/Whitespace/Indent/IndentRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Whitespace\Indent; use TwigCsFixer\Rules\Whitespace\IndentRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class IndentRuleTest extends AbstractRuleTestCase { diff --git a/tests/Rules/Whitespace/TrailingSpace/TrailingSpaceRuleTest.php b/tests/Rules/Whitespace/TrailingSpace/TrailingSpaceRuleTest.php index 0d787577..e07ffbcd 100644 --- a/tests/Rules/Whitespace/TrailingSpace/TrailingSpaceRuleTest.php +++ b/tests/Rules/Whitespace/TrailingSpace/TrailingSpaceRuleTest.php @@ -5,7 +5,7 @@ namespace TwigCsFixer\Tests\Rules\Whitespace\TrailingSpace; use TwigCsFixer\Rules\Whitespace\TrailingSpaceRule; -use TwigCsFixer\Tests\Rules\AbstractRuleTestCase; +use TwigCsFixer\Test\AbstractRuleTestCase; final class TrailingSpaceRuleTest extends AbstractRuleTestCase { diff --git a/tests/Token/Tokenizer/TokenizerTest.php b/tests/Token/Tokenizer/TokenizerTest.php index 640c595a..932a729d 100644 --- a/tests/Token/Tokenizer/TokenizerTest.php +++ b/tests/Token/Tokenizer/TokenizerTest.php @@ -9,7 +9,7 @@ use TwigCsFixer\Environment\StubbedEnvironment; use TwigCsFixer\Exception\CannotTokenizeException; use TwigCsFixer\Report\ViolationId; -use TwigCsFixer\Tests\TestHelper; +use TwigCsFixer\Test\TestHelper; use TwigCsFixer\Tests\Token\Tokenizer\Fixtures\CustomTwigExtension; use TwigCsFixer\Token\Token; use TwigCsFixer\Token\Tokenizer;