Skip to content

Commit

Permalink
added namespaced test
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 9, 2024
1 parent 59ca9a8 commit 4c2dc11
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/PHPStan/Analyser/ScopePhpVersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
];
}
Expand Down
9 changes: 9 additions & 0 deletions tests/PHPStan/Analyser/data/scope-constants-namespace.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace NamespacedConstants;

if (PHP_VERSION_ID < 80000) {
return;
}

exit();

0 comments on commit 4c2dc11

Please sign in to comment.