Skip to content

Commit 8635ff9

Browse files
Skip test on PHP < 8.2
1 parent faa1515 commit 8635ff9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit/Framework/MockObject/GeneratorTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ public function testCannotMockFinalClass(): void
326326
$this->createMock(FinalClass::class);
327327
}
328328

329+
/**
330+
* @requires PHP 8.2
331+
*/
329332
public function testCannotMockReadonlyClass(): void
330333
{
331334
$this->expectException(ClassIsReadonlyException::class);

0 commit comments

Comments
 (0)