Skip to content

Commit 5aa3414

Browse files
committed
add more tests
1 parent 8b8fba1 commit 5aa3414

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

tests/Rules/PHPUnit/data/requires-php-version-mismatch.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
use PHPUnit\Framework\TestCase;
88
use PHPUnit\Framework\Attributes\RequiresPhp;
99

10+
class RequiresPhpLowerEqual85a extends TestCase
11+
{
12+
#[RequiresPhp('<= 8.5')]
13+
public function testFoo(): void {
14+
15+
}
16+
}
17+
1018
class RequiresPhp5 extends TestCase
1119
{
1220
#[RequiresPhp('< 7.0')]
@@ -39,6 +47,38 @@ public function testFoo(): void {
3947
}
4048
}
4149

50+
class RequiresPhpLowerEqual84 extends TestCase
51+
{
52+
#[RequiresPhp('<= 8.4')]
53+
public function testFoo(): void {
54+
55+
}
56+
}
57+
58+
class RequiresPhpLowerEqual85 extends TestCase
59+
{
60+
#[RequiresPhp('<= 8.5')]
61+
public function testFoo(): void {
62+
63+
}
64+
}
65+
66+
class RequiresPhp83 extends TestCase
67+
{
68+
#[RequiresPhp('8.3.*')]
69+
public function testFoo(): void {
70+
71+
}
72+
}
73+
74+
class RequiresPhp85 extends TestCase
75+
{
76+
#[RequiresPhp('8.5.*')]
77+
public function testFoo(): void {
78+
79+
}
80+
}
81+
4282
class RequiresPhp8 extends TestCase
4383
{
4484
#[RequiresPhp('>=8.0')]

0 commit comments

Comments
 (0)