CannotWire
Rasuvaeff\Understudy\Exception\CannotWire
Class — Package: rasuvaeff/understudy — Source — Version: 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): selfTakes 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): selfunknownOverride()
php
static unknownOverride(
class-string $sut,
string $name,
string $known,
): selfincompatibleOverride()
php
static incompatibleOverride(
class-string $sut,
string $name,
string $expected,
string $given,
): selfundecidableParameter()
php
static undecidableParameter(
class-string $sut,
string $name,
string $type,
string $reason,
): selfreferenceParameter()
php
static referenceParameter(class-string $sut, string $name): self