Documentation

InvocationStubber

Tags
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

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
Identity

willReturn()

public willReturn(mixed $value, mixed ...$nextValues) : self
Parameters
$value : mixed
$nextValues : mixed
Return values
self

willReturnArgument()

public willReturnArgument(int $argumentIndex) : self
Parameters
$argumentIndex : int
Return values
self

willReturnCallback()

public willReturnCallback(callable $callback) : self
Parameters
$callback : callable
Return values
self

willReturnMap()

public willReturnMap(array<int, array<int, mixed>> $valueMap) : self
Parameters
$valueMap : array<int, array<int, mixed>>
Return values
self

willReturnOnConsecutiveCalls()

public willReturnOnConsecutiveCalls(mixed ...$values) : self
Parameters
$values : mixed
Return values
self

willReturnReference()

public willReturnReference(mixed &$reference) : self
Parameters
$reference : mixed
Return values
self

willThrowException()

public willThrowException(Throwable $exception) : self
Parameters
$exception : Throwable
Return values
self

        
On this page

Search results