mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-12-02 09:27:56 +01:00
commit
9db3b253bb
@ -10,7 +10,7 @@ class Plugin implements PluginEntryPointInterface
|
||||
/** @return void */
|
||||
public function __invoke(RegistrationInterface $psalm, SimpleXMLElement $config = null)
|
||||
{
|
||||
$psalm->addStubFile(__DIR__ . '/stubs/Assert.php');
|
||||
$psalm->addStubFile(__DIR__ . '/stubs/Assert.php');
|
||||
$psalm->addStubFile(__DIR__ . '/stubs/TestCase.php');
|
||||
$psalm->addStubFile(__DIR__ . '/stubs/MockBuilder.php');
|
||||
$psalm->addStubFile(__DIR__ . '/stubs/InvocationMocker.php');
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user