Skip to content

Commit

Permalink
Finalize test methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 20, 2023
1 parent 73798a8 commit 7752111
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/Framework/MockObject/TestDoubleTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -215,15 +215,15 @@ 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);

$this->assertFalse($double->doSomething());
}

#[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();

Expand Down

0 comments on commit 7752111

Please sign in to comment.