final class InvocationStubberImplementation implements InvocationStubber (View source)

internal  This class is not covered by the backward compatibility promise for PHPUnit
 

Methods

__construct(InvocationHandler $handler, Matcher $matcher, ConfigurableMethod ...$configurableMethods)

No description

method(Constraint|PropertyHook|string $constraint)

No description

id(string $id)

No description

after(string $id)

No description

with(mixed ...$arguments)

No description

will(Stub $stub)

No description

willReturn(mixed $value, mixed ...$nextValues)

No description

willReturnReference(mixed $reference)

No description

willReturnMap(array $valueMap)

No description

willReturnArgument(int $argumentIndex)

No description

willReturnCallback(callable $callback)

No description

willReturnOnConsecutiveCalls(mixed ...$values)

No description

willThrowException(Throwable $exception)

No description

Details

__construct(InvocationHandler $handler, Matcher $matcher, ConfigurableMethod ...$configurableMethods)

No description

Parameters

InvocationHandler $handler
Matcher $matcher
ConfigurableMethod ...$configurableMethods

InvocationStubber id(string $id)

No description

Parameters

string $id

Return Value

InvocationStubber

Exceptions

MatcherAlreadyRegisteredException

InvocationStubber after(string $id)

No description

Parameters

string $id

Return Value

InvocationStubber

InvocationStubber with(mixed ...$arguments)

No description

InvocationStubber will(Stub $stub)

No description

Parameters

Stub $stub

Return Value

InvocationStubber

InvocationStubber willReturn(mixed $value, mixed ...$nextValues)

No description

Parameters

mixed $value
mixed ...$nextValues

Return Value

InvocationStubber

Exceptions

IncompatibleReturnValueException

InvocationStubber willReturnReference(mixed $reference)

No description

Parameters

mixed $reference

Return Value

InvocationStubber

InvocationStubber willReturnMap(array $valueMap)

No description

Parameters

array $valueMap

Return Value

InvocationStubber

InvocationStubber willReturnArgument(int $argumentIndex)

No description

Parameters

int $argumentIndex

Return Value

InvocationStubber

InvocationStubber willReturnCallback(callable $callback)

No description

Parameters

callable $callback

Return Value

InvocationStubber

InvocationStubber willReturnSelf()

No description

Return Value

InvocationStubber

InvocationStubber willReturnOnConsecutiveCalls(mixed ...$values)

No description

Parameters

mixed ...$values

Return Value

InvocationStubber

InvocationStubber willThrowException(Throwable $exception)

No description

Parameters

Throwable $exception

Return Value

InvocationStubber