maxfilatov / phpuaca

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

Support for getMock #1

Closed alex-krash closed 9 years ago

alex-krash commented 9 years ago

It is more convenient to override methods via $Script = $this->getMock(MyClass::mock, ['method']); Expects support for: $Script->expects($this->any())->method(AUTOCOMPLETE GOES HERE);

maxfilatov commented 9 years ago

New supported methods:

PHPUnit_Framework_TestCase::getMock
PHPUnit_Framework_TestCase::getMockClass
PHPUnit_Framework_TestCase::getMockForAbstractClass
PHPUnit_Framework_TestCase::getMockForTrait