Skip to content

Commit

Permalink
#16096 - Replace getMockBuilder() to createMock()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Sep 17, 2022
1 parent a63d39c commit 89bdba1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/MassMockCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public function testSegFaults(): void
//printf($class . PHP_EOL);
//ob_flush();

$mockBuilder = $this->getMockBuilder($class)->disableOriginalConstructor();
$this->assertInstanceOf(MockObject::class, $mockBuilder->getMock());
$mockBuilder = $this->createMock($class);
$this->assertInstanceOf(MockObject::class, $this->createMock($class));

unset($reflector, $mockBuilder);
}
Expand Down

0 comments on commit 89bdba1

Please sign in to comment.