mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-12-03 09:57:52 +01:00
commit
9db3b253bb
@ -2,6 +2,7 @@
|
|||||||
namespace PHPUnit\Framework\MockObject;
|
namespace PHPUnit\Framework\MockObject;
|
||||||
|
|
||||||
use PHPUnit\Framework\TestCase;
|
use PHPUnit\Framework\TestCase;
|
||||||
|
use PHPUnit\Framework\MockObject\Builder\InvocationMocker;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @template T
|
* @template T
|
||||||
@ -46,24 +47,9 @@ interface MockObject
|
|||||||
/**
|
/**
|
||||||
* @param Constraint|string $constraint
|
* @param Constraint|string $constraint
|
||||||
*
|
*
|
||||||
* @return static
|
* @return InvocationMocker
|
||||||
*
|
*
|
||||||
* @throws RuntimeException
|
* @throws RuntimeException
|
||||||
*/
|
*/
|
||||||
public function method($constraint);
|
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);
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user