PHP Class kahlan\matcher\ToEcho

Afficher le fichier Open project: crysalead/kahlan Class Usage Examples

Méthodes publiques

Свойство Type Description
$_description array Description reference of the last ::match() call.

Méthodes publiques

Méthode Description
_buildDescription ( string $actual, string $expected ) Build the description of the runned ::match() call.
actual ( Closure $actual ) : string Returns the output generated by the closure.
description ( ) Returns the description report.
match ( Closure $actual, mixed $expected = null ) : boolean Checks that $actual echo the $expected string.

Method Details

_buildDescription() public static méthode

Build the description of the runned ::match() call.
public static _buildDescription ( string $actual, string $expected )
$actual string The actual string.
$expected string The expected string.

actual() public static méthode

Returns the output generated by the closure.
public static actual ( Closure $actual ) : string
$actual Closure The actual closure.
Résultat string The string result.

description() public static méthode

Returns the description report.
public static description ( )

match() public static méthode

Checks that $actual echo the $expected string.
public static match ( Closure $actual, mixed $expected = null ) : boolean
$actual Closure The closure to run.
$expected mixed The expected string.
Résultat boolean

Property Details

$_description public_oe static_oe property

Description reference of the last ::match() call.
public static array $_description
Résultat array