final class InvocationHandler (View source)

internal  This class is not covered by the backward compatibility promise for PHPUnit
 

Methods

__construct(array $configurableMethods, bool $returnValueGeneration)

No description

bool
hasMatchers()

No description

Matcher|null
lookupMatcher(string $id)

Looks up the match builder with identification $id and returns it.

void
registerMatcher(string $id, Matcher $matcher)

Registers a matcher with the identification $id. The matcher can later be looked up using lookupMatcher() to figure out if it has been invoked.

expects(InvocationOrder $rule)

No description

mixed
invoke(Invocation $invocation)

No description

void
verify()

No description

Details

__construct(array $configurableMethods, bool $returnValueGeneration)

No description

Parameters

array $configurableMethods
bool $returnValueGeneration

bool hasMatchers()

No description

Return Value

bool

Matcher|null lookupMatcher(string $id)

Looks up the match builder with identification $id and returns it.

Parameters

string $id

Return Value

Matcher|null

void registerMatcher(string $id, Matcher $matcher)

Registers a matcher with the identification $id. The matcher can later be looked up using lookupMatcher() to figure out if it has been invoked.

Parameters

string $id
Matcher $matcher

Return Value

void

Exceptions

MatcherAlreadyRegisteredException

InvocationStubber expects(InvocationOrder $rule)

No description

Parameters

InvocationOrder $rule

Return Value

InvocationStubber

mixed invoke(Invocation $invocation)

No description

Parameters

Invocation $invocation

Return Value

mixed

Exceptions

Exception
Exception

void verify()

No description

Return Value

void

Exceptions

Throwable