InvocationStubber
in
Tags
Table of Contents
Methods
- will() : Identity
- willReturn() : $this
- willReturnArgument() : $this
- willReturnCallback() : $this
- willReturnMap() : $this
- willReturnOnConsecutiveCalls() : $this
- willReturnReference() : $this
- willReturnSelf() : $this
- willThrowException() : $this
Methods
will()
public
will(Stub $stub) : Identity
Parameters
- $stub : Stub
Return values
IdentitywillReturn()
public
willReturn(mixed $value, mixed ...$nextValues) : $this
Parameters
- $value : mixed
- $nextValues : mixed
Return values
$thiswillReturnArgument()
public
willReturnArgument(int $argumentIndex) : $this
Parameters
- $argumentIndex : int
Return values
$thiswillReturnCallback()
public
willReturnCallback(callable $callback) : $this
Parameters
- $callback : callable
Return values
$thiswillReturnMap()
public
willReturnMap(array<int, array<int, mixed>> $valueMap) : $this
Parameters
- $valueMap : array<int, array<int, mixed>>
Return values
$thiswillReturnOnConsecutiveCalls()
public
willReturnOnConsecutiveCalls(mixed ...$values) : $this
Parameters
- $values : mixed
Return values
$thiswillReturnReference()
public
willReturnReference(mixed &$reference) : $this
Parameters
- $reference : mixed
Return values
$thiswillReturnSelf()
public
willReturnSelf() : $this
Return values
$thiswillThrowException()
public
willThrowException(Throwable $exception) : $this
Parameters
- $exception : Throwable