diff --git a/tests/unit/MassMockCest.php b/tests/unit/MassMockCest.php index c98c66710dc..b622ce59c48 100644 --- a/tests/unit/MassMockCest.php +++ b/tests/unit/MassMockCest.php @@ -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); }