Méthode | Description | |
---|---|---|
__construct ( |
Construct a new call renderer. | |
instance ( ) : |
Get the static instance of this renderer. | |
renderCalled ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed called() verification. | |
renderCalledWith ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed calledWith() verification. | |
renderCompleted ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed completed() verification. | |
renderGenerated ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed generated() verification. | |
renderGeneratorReceived ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed generator received() verification. | |
renderGeneratorReceivedException ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed generator receivedException() verification. | |
renderGeneratorReturned ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed generator returned() verification. | |
renderGeneratorThrew ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed generator threw() verification. | |
renderInOrder ( array $expected, array $actual ) : string | Render a failed inOrder() verification. | |
renderIterableConsumed ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed iterable consumed() verification. | |
renderIterableProduced ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed iterable produced() verification. | |
renderIterableUsed ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed iterable used() verification. | |
renderIterated ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed iterated() verification. | |
renderMatchers ( array $matchers ) : string | Render a sequence of matchers. | |
renderNoInteraction ( Eloquent\Phony\Mock\Handle\Handle $handle, array $calls ) : string | Render a failed noInteraction() verification. | |
renderResponded ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed responded() verification. | |
renderReturned ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed responded() verification. | |
renderThrew ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
Render a failed threw() verification. | |
renderValue ( mixed $value ) : string | Render a value. | |
setUseColor ( boolean | null $useColor ) | Turn on or off the use of ANSI colored output. |
Méthode | Description | |
---|---|---|
renderCardinality ( $minimum, $maximum, $matchCount, $totalCount, $callCount, $isFailureCause ) | ||
renderEvents ( $events ) |
public __construct ( |
||
$matcherVerifier | The matcher verifier to use. | |
$exporter | Eloquent\Phony\Exporter\Exporter | The exporter to use. |
$differenceEngine | The difference engine to use. | |
$featureDetector | The feature detector to use. |
public static instance ( ) : |
||
Résultat | The static renderer. |
public renderCalled ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
Résultat | string | The rendered failure message. |
public renderCalledWith ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$matchers | array | |
Résultat | string | The rendered failure message. |
public renderCompleted ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
Résultat | string | The rendered failure message. |
public renderGenerated ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
Résultat | string | The rendered failure message. |
public renderGeneratorReceived ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$value | Eloquent\Phony\Matcher\Matcher | The value. |
Résultat | string | The rendered failure message. |
public renderGeneratorReceivedException ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$type | Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null | The type of exception. |
Résultat | string | The rendered failure message. |
public renderGeneratorReturned ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$value | Eloquent\Phony\Matcher\Matcher | The value. |
Résultat | string | The rendered failure message. |
public renderGeneratorThrew ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$type | Eloquent\Phony\Matcher\Matcher | Exceptio\Exception | Erro\Error | string | null | The type of exception. |
Résultat | string | The rendered failure message. |
public renderIterableConsumed ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$isGenerator | boolean | True if this verification is for a generator. |
Résultat | string | The rendered failure message. |
public renderIterableProduced ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$isGenerator | boolean | True if this verification is for a generator. |
$key | Eloquent\Phony\Matcher\Matcher | The key. |
$value | Eloquent\Phony\Matcher\Matcher | The value. |
Résultat | string | The rendered failure message. |
public renderIterableUsed ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$isGenerator | boolean | True if this verification is for a generator. |
Résultat | string | The rendered failure message. |
public renderIterated ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
Résultat | string | The rendered failure message. |
public renderMatchers ( array $matchers ) : string | ||
$matchers | array | |
Résultat | string | The rendered matchers. |
public renderNoInteraction ( Eloquent\Phony\Mock\Handle\Handle $handle, array $calls ) : string | ||
$handle | Eloquent\Phony\Mock\Handle\Handle | The handle. |
$calls | array | |
Résultat | string | The rendered failure message. |
public renderResponded ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
Résultat | string | The rendered failure message. |
public renderReturned ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$value | Eloquent\Phony\Matcher\Matcher | The value. |
Résultat | string | The rendered failure message. |
public renderThrew ( Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call $subject, |
||
$subject | Eloquent\Phony\Spy\Spy | Eloquent\Phony\Call\Call | The subject. |
$cardinality | The cardinality. | |
$type | Eloquent\Phony\Matcher\Matcher | string | null | The type of exception. |
Résultat | string | The rendered failure message. |
public renderValue ( mixed $value ) : string | ||
$value | mixed | The value. |
Résultat | string | The rendered value. |
public setUseColor ( boolean | null $useColor ) | ||
$useColor | boolean | null | True to use color. |