$class * @return MockObject&T */ protected function createMock($class) {} /** * @template T * @param class-string $class * @param array $config * @return MockObject&T */ protected function createConfiguredMock($class, array $config) {} /** * Returns a partial test double for the specified class. * * @template T * @param class-string $class * @param array $methods * @return MockObject&T */ protected function createPartialMock($class, array $methods) {} /** * Returns a builder object to create mock objects using a fluent interface. * * @template T * @param class-string $className * * @return MockBuilder */ public function getMockBuilder(string $className) {} /** * @template T * @param class-string $classOrInterface * @return ObjectProphecy */ protected function prophesize($classOrInterface): ObjectProphecy {} /** * @param class-string<\Throwable> $exception * @return void */ public function expectException(string $exception) {} }