Skip to content

Commit

Permalink
Skip test on PHP < 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 9, 2022
1 parent faa1515 commit 8635ff9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/Framework/MockObject/GeneratorTest.php
Expand Up @@ -326,6 +326,9 @@ public function testCannotMockFinalClass(): void
$this->createMock(FinalClass::class);
}

/**
* @requires PHP 8.2
*/
public function testCannotMockReadonlyClass(): void
{
$this->expectException(ClassIsReadonlyException::class);
Expand Down

0 comments on commit 8635ff9

Please sign in to comment.