Skip to content

CannotWire

Rasuvaeff\Understudy\Exception\CannotWire

ClassPackage: rasuvaeff/understudySourceVersion: v0.4.1

Extends: InvalidArgumentException

Implements: Stringable, Throwable, Exception\UnderstudyError

wire() cannot build the subject, or cannot decide what to pass it.

Methods

notAConcreteClass()

php
static notAConcreteClass(string $sut, string $reason): self

Takes a plain string, not a class-string: "there is no such class" is one of the reasons it reports.

inaccessibleConstructor()

php
static inaccessibleConstructor(class-string $sut, string $visibility): self

unknownOverride()

php
static unknownOverride(
    class-string $sut,
    string $name,
    string $known,
): self

incompatibleOverride()

php
static incompatibleOverride(
    class-string $sut,
    string $name,
    string $expected,
    string $given,
): self

undecidableParameter()

php
static undecidableParameter(
    class-string $sut,
    string $name,
    string $type,
    string $reason,
): self

referenceParameter()

php
static referenceParameter(class-string $sut, string $name): self