InvocationMocker
    
            
            in package
            
        
    
            
            implements
                            InvocationStubber,                             MethodNameMatch                    
    
    
FinalYes
Tags
Table of Contents
Interfaces
- InvocationStubber
- MethodNameMatch
Properties
- $configurableMethodNames : array<string|int, mixed>|null
- $configurableMethods : array<string|int, mixed>
- $invocationHandler : InvocationHandler
- $matcher : Matcher
Methods
- __construct() : mixed
- after() : $this
- id() : $this
- method() : $this
- will() : $this
- willReturn() : self
- willReturnArgument() : self
- willReturnCallback() : self
- willReturnMap() : self
- willReturnOnConsecutiveCalls() : self
- willReturnReference() : self
- willReturnSelf() : self
- willThrowException() : self
- with() : $this
- withAnyParameters() : $this
- configuredMethod() : ConfigurableMethod|null
- ensureParametersCanBeConfigured() : void
- ensureTypeOfReturnValues() : void
Properties
$configurableMethodNames
    private
        array<string|int, mixed>|null
    $configurableMethodNames
     = null
    
    
    
    Tags
$configurableMethods read-only
    private
        array<string|int, mixed>
    $configurableMethods
    
    
    
    
    Tags
$invocationHandler read-only
    private
        InvocationHandler
    $invocationHandler
    
    
    
    
$matcher read-only
    private
        Matcher
    $matcher
    
    
    
    
Methods
__construct()
    public
                    __construct(InvocationHandler $handler, Matcher $matcher, ConfigurableMethod ...$configurableMethods) : mixed
    Parameters
- $handler : InvocationHandler
- $matcher : Matcher
- $configurableMethods : ConfigurableMethod
after()
    public
                    after(string $id) : $this
    Parameters
- $id : string
Return values
$thisid()
    public
                    id(string $id) : $this
    Parameters
- $id : string
Tags
Return values
$thismethod()
    public
                    method(Constraint|string $constraint) : $this
    Parameters
- $constraint : Constraint|string
Tags
Return values
$thiswill()
    public
                    will(Stub $stub) : $this
    Parameters
- $stub : Stub
Return values
$thiswillReturn()
    public
                    willReturn(mixed $value, mixed ...$nextValues) : self
    Parameters
- $value : mixed
- $nextValues : mixed
Tags
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>
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
Return values
selfwith()
    public
                    with(mixed ...$arguments) : $this
    Parameters
- $arguments : mixed
Tags
Return values
$thiswithAnyParameters()
    public
                    withAnyParameters() : $this
    Tags
Return values
$thisconfiguredMethod()
    private
                    configuredMethod() : ConfigurableMethod|null
    Return values
ConfigurableMethod|nullensureParametersCanBeConfigured()
    private
                    ensureParametersCanBeConfigured() : void
    Tags
ensureTypeOfReturnValues()
    private
                    ensureTypeOfReturnValues(array<string|int, mixed> $values) : void
    Parameters
- $values : array<string|int, mixed>