| 
    Lggr
    
   | 
 


Public Member Functions | |
| __construct (MatcherCollection $collection, Invocation $invocationMatcher, array $configurableMethods) | |
| getMatcher () | |
| id ($id) | |
| will (Stub $stub) | |
| willReturn ($value,... $nextValues) | |
| willReturnReference (&$reference) | |
| willReturnMap (array $valueMap) | |
| willReturnArgument ($argumentIndex) | |
| willReturnCallback ($callback) | |
| willReturnSelf () | |
| willReturnOnConsecutiveCalls (... $values) | |
| willThrowException (\Exception $exception) | |
| after ($id) | |
| with (... $arguments) | |
| withConsecutive (... $arguments) | |
| withAnyParameters () | |
| method ($constraint) | |
  Public Member Functions inherited from PHPUnit\Framework\MockObject\Builder\Stub | |
| will (BaseStub $stub) | |
Builder for mocked or stubbed invocations.
Provides methods for building expectations without having to resort to instantiating the various matchers manually. These methods also form a more natural way of reading the expectation. This class should be together with the test case PHPUnit\Framework\MockObject\TestCase.
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::__construct | ( | MatcherCollection | $collection, | 
| Invocation | $invocationMatcher, | ||
| array | $configurableMethods | ||
| ) | 
| MatcherCollection | $collection | |
| Invocation | $invocationMatcher | |
| array | $configurableMethods | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::after | ( | $id | ) | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::getMatcher | ( | ) | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::id | ( | $id | ) | 
| mixed | $id | 
Implements PHPUnit\Framework\MockObject\Builder\Identity.
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::method | ( | $constraint | ) | 
| Constraint | string | $constraint | 
| RuntimeException | 
Implements PHPUnit\Framework\MockObject\Builder\MethodNameMatch.
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::will | ( | Stub | $stub | ) | 
| Stub | $stub | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturn | ( | $value, | |
| $nextValues | |||
| ) | 
| mixed | $value | |
| mixed | $nextValues,... | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnArgument | ( | $argumentIndex | ) | 
| mixed | $argumentIndex | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnCallback | ( | $callback | ) | 
| callable | $callback | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnMap | ( | array | $valueMap | ) | 
| array | $valueMap | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnOnConsecutiveCalls | ( | $values | ) | 
| mixed | $values,... | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnReference | ( | & | $reference | ) | 
| mixed | $reference | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willReturnSelf | ( | ) | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::willThrowException | ( | \Exception | $exception | ) | 
| \Exception | $exception | 
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::with | ( | $arguments | ) | 
| array | ...$arguments | 
| RuntimeException | 
Implements PHPUnit\Framework\MockObject\Builder\ParametersMatch.
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::withAnyParameters | ( | ) | 
| RuntimeException | 
Implements PHPUnit\Framework\MockObject\Builder\ParametersMatch.
| PHPUnit\Framework\MockObject\Builder\InvocationMocker::withConsecutive | ( | $arguments | ) | 
 1.8.17