InvocationStubber
in
Tags
Table of Contents
Methods
- will() : Identity
- willReturn() : self
- willReturnArgument() : self
- willReturnCallback() : self
- willReturnMap() : self
- willReturnOnConsecutiveCalls() : self
- willReturnReference() : self
- willReturnSelf() : self
- willThrowException() : self
Methods
will()
public
will(Stub $stub) : Identity
Parameters
- $stub : Stub
Return values
IdentitywillReturn()
public
willReturn(mixed $value, mixed ...$nextValues) : self
Parameters
- $value : mixed
- $nextValues : mixed
Return values
selfwillReturnArgument()
public
willReturnArgument(int $argumentIndex) : self
Parameters
- $argumentIndex : int
Return values
selfwillReturnCallback()
public
willReturnCallback(callable $callback) : self
Parameters
- $callback : callable
Return values
selfwillReturnMap()
public
willReturnMap(array<string|int, mixed> $valueMap) : self
Parameters
- $valueMap : array<string|int, mixed>
Tags
Return values
selfwillReturnOnConsecutiveCalls()
public
willReturnOnConsecutiveCalls(mixed ...$values) : self
Parameters
- $values : mixed
Return values
selfwillReturnReference()
public
willReturnReference(mixed &$reference) : self
Parameters
- $reference : mixed
Return values
selfwillReturnSelf()
public
willReturnSelf() : self
Return values
selfwillThrowException()
public
willThrowException(Throwable $exception) : self
Parameters
- $exception : Throwable