InvocationMockerImplementation
final class InvocationMockerImplementation extends AbstractInvocationImplementation implements InvocationMocker (View source)
| internal | This class is not covered by the backward compatibility promise for PHPUnit |
Properties
| protected InvocationHandler | $invocationHandler | from AbstractInvocationImplementation | |
| protected Matcher | $matcher | from AbstractInvocationImplementation | |
| protected ConfigurableMethod> | $configurableMethods | from AbstractInvocationImplementation | |
| protected ?array<string, int> | $configurableMethodNames | from AbstractInvocationImplementation | |
| protected bool | $createdWithoutExplicitExpects | from AbstractInvocationImplementation |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
final
__construct(InvocationHandler $handler, Matcher $matcher, ConfigurableMethod ...$configurableMethods)
No description
final InvocationStubber
method(Constraint|PropertyHook|string $constraint)
No description
final InvocationStubber
will(Stub $stub)
No description
final InvocationStubber
willReturn(mixed $value, mixed ...$nextValues)
No description
final InvocationStubber
willReturnReference(mixed $reference)
No description
final InvocationStubber
willReturnMap(array $valueMap)
No description
final InvocationStubber
willReturnStrictMap(array $valueMap)
No description
final InvocationStubber
willReturnArgument(int $argumentIndex)
No description
final InvocationStubber
willReturnCallback(callable $callback)
No description
final InvocationStubber
willReturnSelf()
No description
final InvocationStubber
willReturnOnConsecutiveCalls(mixed ...$values)
No description
final InvocationStubber
willThrowException(Throwable $exception)
No description
final AbstractInvocationImplementation
markAsCreatedWithoutExplicitExpects()
| internal | This method is not covered by the backward compatibility promise for PHPUnit |
No description
final void
seal()
No description
final protected void
ensureParametersCanBeConfigured()
No description
InvocationMocker
with(mixed ...$arguments)
No description
InvocationMocker
withParameterSetsInOrder(mixed ...$arguments)
No description
InvocationMocker
withParameterSetsInAnyOrder(mixed ...$arguments)
No description
InvocationMocker
withParameterSetsInPartialOrder(mixed ...$arguments)
No description
InvocationMocker
withAnyParameters()
No description
InvocationMocker
id(string $id)
deprecated
deprecated
No description
InvocationMocker
after(string $id)
deprecated
deprecated
No description