Skip to content

StrictModeViolation

Rasuvaeff\Understudy\Exception\StrictModeViolation

ClassPackage: rasuvaeff/understudySourceVersion: v0.4.1

Extends: RuntimeException

Implements: Throwable, Stringable, Exception\UnderstudyError

A strict understudy received a call no expectation matched.

Methods

unexpectedCall()

php
static unexpectedCall(
    non-empty-string $label,
    non-empty-string $method,
    string $refusal = '',
): self

$refusal carries the call and the expectations that did not accept it, already rendered. It is empty when nothing at all was configured for the method: there is then nothing to compare the call against, and an empty list under a heading would be an answer pretending to be one.