maxfilatov / phpuaca

PHPUnit Autocomplete Assistant (PhpStorm plugin)
50 stars 24 forks source link

Allow completion of all methods when MockBuilder has no setMethods call #4

Closed King2500 closed 8 years ago

King2500 commented 9 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)

$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>');
Ma27 commented 8 years ago

ping @maxfilatov

maxfilatov commented 8 years ago

Merged to branch unstable-2