diff --git a/tests/PHPStan/Analyser/ScopePhpVersionTest.php b/tests/PHPStan/Analyser/ScopePhpVersionTest.php index 8f4fc492b..fac3b8a06 100644 --- a/tests/PHPStan/Analyser/ScopePhpVersionTest.php +++ b/tests/PHPStan/Analyser/ScopePhpVersionTest.php @@ -15,7 +15,11 @@ public function dataTestPhpVersion(): array return [ [ 'int<80000, 80499>', - __DIR__ . '/data/global-scope-constants.php', + __DIR__ . '/data/scope-constants-global.php', + ], + [ + 'int<80000, 80499>', + __DIR__ . '/data/scope-constants-namespace.php', ], ]; } diff --git a/tests/PHPStan/Analyser/data/global-scope-constants.php b/tests/PHPStan/Analyser/data/scope-constants-global.php similarity index 100% rename from tests/PHPStan/Analyser/data/global-scope-constants.php rename to tests/PHPStan/Analyser/data/scope-constants-global.php diff --git a/tests/PHPStan/Analyser/data/scope-constants-namespace.php b/tests/PHPStan/Analyser/data/scope-constants-namespace.php new file mode 100644 index 000000000..185fc3ee0 --- /dev/null +++ b/tests/PHPStan/Analyser/data/scope-constants-namespace.php @@ -0,0 +1,9 @@ +