Merge pull request #3 from weirdan/method-signature

Method() signature
This commit is contained in:
Matthew Brown 2018-12-01 10:02:38 -05:00 committed by GitHub
commit 9db3b253bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 17 deletions

View File

@ -2,6 +2,7 @@
namespace PHPUnit\Framework\MockObject;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\MockObject\Builder\InvocationMocker;
/**
* @template T
@ -46,24 +47,9 @@ interface MockObject
/**
* @param Constraint|string $constraint
*
* @return static
* @return InvocationMocker
*
* @throws RuntimeException
*/
public function method($constraint);
/**
* @param mixed $value
* @param mixed $nextValues, ...
*
* @return static
*/
public function willReturn($value, ...$nextValues);
/**
* @param Stub $stub
*
* @return InvocationMocker
*/
public function will(Stub $stub);
}