Skip to content

InvalidCallSpecification

Rasuvaeff\Understudy\Exception\InvalidCallSpecification

ClassPackage: rasuvaeff/understudySourceVersion: v0.4.1

Extends: LogicException

Implements: Throwable, Stringable, Exception\UnderstudyError

The closure handed to when()/verify()/calls() did not describe one call the way a specification must: no direct call on an understudy, more than one, or arguments that cannot form a valid specification.

Methods

noCallRecorded()

php
static noCallRecorded(): self

notADouble()

php
static notADouble(): self

misplacedTailMatcher()

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

emptyCombinator()

php
static emptyCombinator(non-empty-string $matcher): self

tailMatcherInCombinator()

php
static tailMatcherInCombinator(
    non-empty-string $matcher,
    non-empty-string $operand,
): self

emptySequence()

php
static emptySequence(): self

protocolAlreadyArmed()

php
static protocolAlreadyArmed(positive-int $position, positive-int $length): self

incompleteSpecification()

php
static incompleteSpecification(
    non-empty-string $method,
    int<0, max> $given,
    int<0, max> $declared,
): self

omittedBeforeSpecified()

php
static omittedBeforeSpecified(
    non-empty-string $method,
    int<0, max> $omitted,
    int<0, max> $specified,
): self

omittedTailNeedsRest()

php
static omittedTailNeedsRest(non-empty-string $method, non-empty-string $matcher): self

closureFailed()

php
static closureFailed(Throwable $previous): self

staticMethodCalled()

php
static staticMethodCalled(non-empty-string $method): self