InvalidCallSpecification
Rasuvaeff\Understudy\Exception\InvalidCallSpecification
Class — Package: rasuvaeff/understudy — Source — Version: 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(): selfnotADouble()
php
static notADouble(): selfmisplacedTailMatcher()
php
static misplacedTailMatcher(
non-empty-string $method,
int $position,
non-empty-string $matcher,
): selfemptyCombinator()
php
static emptyCombinator(non-empty-string $matcher): selftailMatcherInCombinator()
php
static tailMatcherInCombinator(
non-empty-string $matcher,
non-empty-string $operand,
): selfemptySequence()
php
static emptySequence(): selfprotocolAlreadyArmed()
php
static protocolAlreadyArmed(positive-int $position, positive-int $length): selfincompleteSpecification()
php
static incompleteSpecification(
non-empty-string $method,
int<0, max> $given,
int<0, max> $declared,
): selfomittedBeforeSpecified()
php
static omittedBeforeSpecified(
non-empty-string $method,
int<0, max> $omitted,
int<0, max> $specified,
): selfomittedTailNeedsRest()
php
static omittedTailNeedsRest(non-empty-string $method, non-empty-string $matcher): selfclosureFailed()
php
static closureFailed(Throwable $previous): selfstaticMethodCalled()
php
static staticMethodCalled(non-empty-string $method): self