Skip to content

MatcherLeaked

Rasuvaeff\Understudy\Exception\MatcherLeaked

ClassPackage: rasuvaeff/understudySourceVersion: v0.4.1

Extends: LogicException

Implements: Throwable, Stringable, Exception\UnderstudyError

A matcher reached a real call instead of a specification closure. Matchers are part of the protocol that records what a call should look like; the code under test must never receive one as a value.

Methods

intoRealCall()

php
static intoRealCall(
    non-empty-string $method,
    int $position,
    non-empty-string $matcher,
): self