From 77521117ae51dd711c4c0841286a40a4121c9359 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Fri, 20 Oct 2023 11:33:24 +0200 Subject: [PATCH] Finalize test methods --- tests/unit/Framework/MockObject/TestDoubleTestCase.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/Framework/MockObject/TestDoubleTestCase.php b/tests/unit/Framework/MockObject/TestDoubleTestCase.php index 15342b89b5b..1c3022e64db 100644 --- a/tests/unit/Framework/MockObject/TestDoubleTestCase.php +++ b/tests/unit/Framework/MockObject/TestDoubleTestCase.php @@ -204,7 +204,7 @@ final public function testMethodCanBeConfiguredToThrowAnException(): void $this->fail(); } - public function testMethodWithNeverReturnTypeDeclarationThrowsException(): void + final public function testMethodWithNeverReturnTypeDeclarationThrowsException(): void { $double = $this->createTestDouble(InterfaceWithNeverReturningMethod::class); @@ -215,7 +215,7 @@ public function testMethodWithNeverReturnTypeDeclarationThrowsException(): void } #[TestDox('Original __clone() method is not called by default when test double object is cloned')] - public function testOriginalCloneMethodIsNotCalledByDefaultWhenTestDoubleObjectIsCloned(): void + final public function testOriginalCloneMethodIsNotCalledByDefaultWhenTestDoubleObjectIsCloned(): void { $double = clone $this->createTestDouble(ExtendableClassWithCloneMethod::class); @@ -223,7 +223,7 @@ public function testOriginalCloneMethodIsNotCalledByDefaultWhenTestDoubleObjectI } #[TestDox('Original __clone() method can optionally be called when test double object is cloned')] - public function testOriginalCloneMethodCanOptionallyBeCalledWhenTestDoubleObjectIsCloned(): void + final public function testOriginalCloneMethodCanOptionallyBeCalledWhenTestDoubleObjectIsCloned(): void { $double = $this->getMockBuilder(ExtendableClassWithCloneMethod::class)->enableOriginalClone()->getMock();