Skip to content

Commit 767dae0

Browse files
committed
Use PHPUnit version for skiped test
1 parent b7503b7 commit 767dae0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/Unit/Api/MembershipTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,10 @@ public function testRemoveCallsDelete()
132132
*/
133133
public function testRemoveMemberCallsDelete()
134134
{
135-
// @phpstan-ignore-next-line
136-
if (version_compare(PHP_VERSION, '8.1.0', '<')) {
135+
if (version_compare(\PHPUnit\Runner\Version::id(), '10.0.0', '<')) {
137136
$this->markTestSkipped('This test only runs with PHPUnit 10');
138-
139-
return;
140137
}
138+
141139
// Test values
142140
$response = 'API Response';
143141

0 commit comments

Comments
 (0)