Skip to content

UnsupportedTarget ​

Rasuvaeff\Understudy\Exception\UnsupportedTarget

Class — Package: rasuvaeff/understudy — Source — Version: v1.1.0-1-g6ed023f

Extends: LogicException

Implements: Throwable, Stringable, Exception\UnderstudyError

The requested target cannot be doubled, and no option would make it work without the user changing something. The message names that something.

Methods ​

missing() ​

php
static missing(string $target): self

No class or interface of that name is loadable — usually a typo, or a class the autoloader cannot see from the test.

notDoublable() ​

php
static notDoublable(non-empty-string $target, string $reason): self

Builds the error for a target that cannot be doubled.

signatureConflict() ​

php
static signatureConflict(
    non-empty-string $method,
    string $left,
    string $right,
): self

Builds the error for incompatible target signatures.