Skip to content

Commit db7d282

Browse files
committed
added namespaced test
1 parent 148a313 commit db7d282

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

tests/PHPStan/Analyser/ScopePhpVersionTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ public function dataTestPhpVersion(): array
1515
return [
1616
[
1717
'int<80000, 80499>',
18-
__DIR__ . '/data/global-scope-constants.php',
18+
__DIR__ . '/data/scope-constants-global.php',
19+
],
20+
[
21+
'int<80000, 80499>',
22+
__DIR__ . '/data/scope-constants-namespace.php',
1923
],
2024
];
2125
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace NamespacedConstants;
4+
5+
if (PHP_VERSION_ID < 80000) {
6+
return;
7+
}
8+
9+
exit();

0 commit comments

Comments
 (0)