Closed King2500 closed 8 years ago
This change allows method completion of all methods when MockBuilder has no setMethods call. (Every method of the class is stubbed in this case)
setMethods
$mock = $this->getMockBuilder(\ThomasSchulz\ClockUtil\Clock::class) ->getMock(); $mock->expects($this->once())->method('<caret>');
Also works:
$mock = $this->getMock(\ThomasSchulz\ClockUtil\Clock::class); $mock->expects($this->once())->method('<caret>');
ping @maxfilatov
Merged to branch unstable-2
This change allows method completion of all methods when MockBuilder has no
setMethods
call. (Every method of the class is stubbed in this case)Also works: