Skip to content

Commit 5f9e1c1

Browse files
committed
Not running PHP 8 tests on PHP 7 version
1 parent 572a6b1 commit 5f9e1c1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/AnnotationReaderTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ public function testEmptyGetParameterAnnotations(): void
154154
$this->assertEmpty($annotationReader->getParameterAnnotationsPerParameter([]));
155155
}
156156

157+
/**
158+
* @requires PHP >= 8.0
159+
*/
157160
public function testPhp8AttributeClassAnnotation(): void
158161
{
159162
$annotationReader = new AnnotationReader(new DoctrineAnnotationReader());
@@ -166,6 +169,9 @@ public function testPhp8AttributeClassAnnotation(): void
166169
//$this->assertSame($type, $type2, 'Assert some cache is available');
167170
}
168171

172+
/**
173+
* @requires PHP >= 8.0
174+
*/
169175
public function testPhp8AttributeClassAnnotations(): void
170176
{
171177
$annotationReader = new AnnotationReader(new DoctrineAnnotationReader());
@@ -175,6 +181,9 @@ public function testPhp8AttributeClassAnnotations(): void
175181
$this->assertCount(3, $types);
176182
}
177183

184+
/**
185+
* @requires PHP >= 8.0
186+
*/
178187
public function testPhp8AttributeMethodAnnotation(): void
179188
{
180189
$annotationReader = new AnnotationReader(new DoctrineAnnotationReader());
@@ -183,6 +192,9 @@ public function testPhp8AttributeMethodAnnotation(): void
183192
$this->assertInstanceOf(Field::class, $type);
184193
}
185194

195+
/**
196+
* @requires PHP >= 8.0
197+
*/
186198
public function testPhp8AttributeMethodAnnotations(): void
187199
{
188200
$annotationReader = new AnnotationReader(new DoctrineAnnotationReader());
@@ -197,6 +209,9 @@ public function testPhp8AttributeMethodAnnotations(): void
197209
$this->assertTrue($securitys[1]->isFailWithSet());
198210
}
199211

212+
/**
213+
* @requires PHP >= 8.0
214+
*/
200215
public function testPhp8AttributeParameterAnnotations(): void
201216
{
202217
$annotationReader = new AnnotationReader(new DoctrineAnnotationReader());

0 commit comments

Comments
 (0)