Skip to content

Commit 70af1ed

Browse files
committed
Ensure test is only run on PHP 8+
1 parent 6415b1a commit 70af1ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/php/lang/reflection/unittest/FromAttributesTest.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
use ReflectionClass, StdClass as Dynamic;
44
use lang\meta\FromAttributes;
5+
use test\verify\Runtime;
56
use test\{Assert, Test, Ignore as Skip};
67
use util\Comparison as WithComparison;
78

9+
#[Runtime(php: '>=8.0')]
810
class FromAttributesTest {
911

1012
#[Test]
@@ -19,6 +21,7 @@ public function imports() {
1921
'ReflectionClass' => null,
2022
'FromAttributes' => FromAttributes::class,
2123
'Dynamic' => Dynamic::class,
24+
'Runtime' => Runtime::class,
2225
'Assert' => Assert::class,
2326
'Test' => Test::class,
2427
'WithComparison' => WithComparison::class,

0 commit comments

Comments
 (0)