Skip to content

Commit 1e58a75

Browse files
Fixed failing test in PHP < 8
1 parent 79098b2 commit 1e58a75

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/AnnotationLoaderTest.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ public function testAnnotationListenerWithResource($loader): void
133133
}
134134

135135
/**
136+
* @requires PHP >= 8.0
137+
*
136138
* @dataProvider provideAnnotationLoader
137139
* @runInSeparateProcess
138140
*/
@@ -176,16 +178,13 @@ public function testAnnotationLoaderWithFunction(): void
176178
}
177179

178180
/**
181+
* @requires PHP < 8.0
179182
* @runInSeparateProcess
180183
*/
181184
public function testSettingConstructorNullInPhp7(): void
182185
{
183-
if (PHP_VERSION_ID >= 80000) {
184-
$this->markTestSkipped();
185-
}
186-
187186
$this->expectException(\RuntimeException::class);
188-
$annotation = new AnnotationLoader();
187+
new AnnotationLoader();
189188
}
190189

191190
public function provideAnnotationLoader(): array

0 commit comments

Comments
 (0)