PHP Class kahlan\matcher\ToHaveLength

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 ( mixed $actual, mixed $length, mixed $expected ) Build the description of the runned ::match() call.
actual ( mixed $actual ) : mixed Normalize the actual value in the expected format.
description ( ) Returns the description report.
match ( mixed $actual, mixed $expected ) : boolean Checks that $actual has the $expected length.

Method Details

_buildDescription() public static méthode

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

actual() public static méthode

Normalize the actual value in the expected format.
public static actual ( mixed $actual ) : mixed
$actual mixed The actual value to be normalized.
Résultat mixed The normalized value.

description() public static méthode

Returns the description report.
public static description ( )

match() public static méthode

Checks that $actual has the $expected length.
public static match ( mixed $actual, mixed $expected ) : boolean
$actual mixed The actual value.
$expected mixed The expected value.
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