PHP Class kahlan\matcher\ToMatchEcho

Inheritance: extends ToEcho
Datei anzeigen Open project: crysalead/kahlan Class Usage Examples

Public Methods

Method Description
_buildDescription ( string $actual, string $expected ) Build the description of the runned ::match() call.
match ( Closure $actual, mixed $expected = null ) : boolean Checks that $actual echo the $expected regexp.

Method Details

_buildDescription() public static method

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.

match() public static method

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