Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead.
public function will(BaseStub $stub) : Identity;