diff --git a/.gitattributes b/.gitattributes index 3da5fabc..6b1774d6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -13,7 +13,7 @@ /phpunit.xml.dist export-ignore /phpunit.circleci.xml export-ignore /.circleci/ export-ignore -/VariableAnalysis/Tests/ export-ignore +/Tests/ export-ignore # # Auto detect text files and perform LF normalization diff --git a/VariableAnalysis/Tests/BaseTestCase.php b/Tests/BaseTestCase.php similarity index 87% rename from VariableAnalysis/Tests/BaseTestCase.php rename to Tests/BaseTestCase.php index afadab20..5f4c9200 100644 --- a/VariableAnalysis/Tests/BaseTestCase.php +++ b/Tests/BaseTestCase.php @@ -8,7 +8,7 @@ class BaseTestCase extends TestCase { const STANDARD_NAME = 'VariableAnalysis'; - const SNIFF_FILE = __DIR__ . '/../Sniffs/CodeAnalysis/VariableAnalysisSniff.php'; + const SNIFF_FILE = __DIR__ . '/../VariableAnalysis/Sniffs/CodeAnalysis/VariableAnalysisSniff.php'; public function prepareLocalFileForSniffs($fixtureFile) { $config = new Config(); @@ -41,6 +41,6 @@ public function getErrorLineNumbersFromFile(LocalFile $phpcsFile) { } public function getFixture($fixtureFilename) { - return realpath(__DIR__ . '/CodeAnalysis/fixtures/' . $fixtureFilename); + return realpath(__DIR__ . '/VariableAnalysisSniff/fixtures/' . $fixtureFilename); } } diff --git a/VariableAnalysis/Tests/CodeAnalysis/VariableAnalysisTest.php b/Tests/VariableAnalysisSniff/VariableAnalysisTest.php similarity index 99% rename from VariableAnalysis/Tests/CodeAnalysis/VariableAnalysisTest.php rename to Tests/VariableAnalysisSniff/VariableAnalysisTest.php index 9d15acc7..08a3f65f 100644 --- a/VariableAnalysis/Tests/CodeAnalysis/VariableAnalysisTest.php +++ b/Tests/VariableAnalysisSniff/VariableAnalysisTest.php @@ -1,5 +1,5 @@ - - Originally from https://gist.github.com/Ovsyanka/e2ab2ff76e7c0d7e75a1e4213a03ff95 - PSR2 with changes: - - bracers on end of line instead new line - - two space indentation - - ./VariableAnalysis/ - ./VariableAnalysis/Tests/CodeAnalysis/fixtures/ + ./Tests/ + ./Tests/VariableAnalysisSniff/fixtures/ + ./vendor/ diff --git a/phpstan.neon.dist b/phpstan.neon.dist index becd359d..725e053f 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -6,6 +6,6 @@ parameters: paths: - %currentWorkingDirectory%/VariableAnalysis/ excludes_analyse: - - %currentWorkingDirectory%/VariableAnalysis/Tests/ + - %currentWorkingDirectory%/Tests/ ignoreErrors: - '~^Constant T_\w+ not found.$~' diff --git a/phpunit.circleci.xml b/phpunit.circleci.xml index d316d568..32dac349 100644 --- a/phpunit.circleci.xml +++ b/phpunit.circleci.xml @@ -1,9 +1,9 @@ - VariableAnalysis/Tests + Tests diff --git a/phpunit.xml.dist b/phpunit.xml.dist index d91e29a2..07f4fd1f 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,10 @@ - VariableAnalysis/Tests + Tests