file-fetcher
Public Member Functions | List of all members
PHPUnit\Framework\MockObject\Builder\InvocationMocker Class Reference
Inheritance diagram for PHPUnit\Framework\MockObject\Builder\InvocationMocker:
PHPUnit\Framework\MockObject\Builder\InvocationStubber PHPUnit\Framework\MockObject\Builder\MethodNameMatch PHPUnit\Framework\MockObject\Builder\ParametersMatch PHPUnit\Framework\MockObject\Builder\Match PHPUnit\Framework\MockObject\Builder\Stub PHPUnit\Framework\MockObject\Builder\Identity

Public Member Functions

 __construct (InvocationHandler $handler, Matcher $matcher, ConfigurableMethod ... $configurableMethods)
 
 id ($id)
 
 will (Stub $stub)
 
 willReturn ($value,... $nextValues)
 
 willReturnReference (&$reference)
 
 willReturnMap (array $valueMap)
 
 willReturnArgument ($argumentIndex)
 
 willReturnCallback ($callback)
 
 willReturnSelf ()
 
 willReturnOnConsecutiveCalls (... $values)
 
 willThrowException (\Throwable $exception)
 
 after ($id)
 
 with (... $arguments)
 
 withConsecutive (... $arguments)
 
 withAnyParameters ()
 
 method ($constraint)
 
- Public Member Functions inherited from PHPUnit\Framework\MockObject\Builder\Stub
 will (BaseStub $stub)
 

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::__construct ( InvocationHandler  $handler,
Matcher  $matcher,
ConfigurableMethod ...  $configurableMethods 
)

Member Function Documentation

◆ after()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::after (   $id)

◆ id()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::id (   $id)

◆ method()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::method (   $constraint)
Parameters
Constraint | string$constraint
Exceptions
RuntimeException
Returns
$this

Implements PHPUnit\Framework\MockObject\Builder\MethodNameMatch.

◆ will()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::will ( Stub  $stub)

◆ willReturn()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturn (   $value,
  $nextValues 
)

◆ willReturnArgument()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnArgument (   $argumentIndex)
Parameters
int$argumentIndex
Returns
self

Implements PHPUnit\Framework\MockObject\Builder\InvocationStubber.

◆ willReturnCallback()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnCallback (   $callback)
Parameters
callable$callback
Returns
self

Implements PHPUnit\Framework\MockObject\Builder\InvocationStubber.

◆ willReturnMap()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnMap ( array  $valueMap)
Parameters
array<int,array<int,mixed>>$valueMap
Returns
self

Implements PHPUnit\Framework\MockObject\Builder\InvocationStubber.

◆ willReturnOnConsecutiveCalls()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnOnConsecutiveCalls (   $values)
Parameters
mixed$values
Returns
self

Implements PHPUnit\Framework\MockObject\Builder\InvocationStubber.

◆ willReturnReference()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnReference ( $reference)
Parameters
mixed$reference
Returns
self

Implements PHPUnit\Framework\MockObject\Builder\InvocationStubber.

◆ willReturnSelf()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnSelf ( )

◆ willThrowException()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::willThrowException ( \Throwable  $exception)

◆ with()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::with (   $arguments)

◆ withAnyParameters()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::withAnyParameters ( )

◆ withConsecutive()

PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive (   $arguments)
Parameters
array...$arguments
Exceptions
RuntimeException
Returns
$this

The documentation for this class was generated from the following file: