Skip to content

Commit

Permalink
Merge branch '11.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 17, 2024
2 parents 88a76c6 + 2f8ac09 commit 833fa23
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Expand Up @@ -35,6 +35,12 @@ public function testCreatesMockObjectForIntersectionOfInterfaces(): void
$this->assertInstanceOf(AnInterface::class, $double);
$this->assertInstanceOf(AnotherInterface::class, $double);
$this->assertInstanceOf(Stub::class, $double);

$double->method('doSomething')->willReturn(true);
$double->method('doSomethingElse')->willReturn(true);

$this->assertTrue($double->doSomething());
$this->assertTrue($double->doSomethingElse());
}

public function testReturnValueGenerationIsEnabledByDefault(): void
Expand Down
Expand Up @@ -35,6 +35,12 @@ public function testCreatesTestStubForIntersectionOfInterfaces(): void
$this->assertInstanceOf(AnInterface::class, $double);
$this->assertInstanceOf(AnotherInterface::class, $double);
$this->assertInstanceOf(Stub::class, $double);

$double->method('doSomething')->willReturn(true);
$double->method('doSomethingElse')->willReturn(true);

$this->assertTrue($double->doSomething());
$this->assertTrue($double->doSomethingElse());
}

public function testReturnValueGenerationIsEnabledByDefault(): void
Expand Down

0 comments on commit 833fa23

Please sign in to comment.