PHP Class kahlan\matcher\ToHaveLength

Datei anzeigen Open project: crysalead/kahlan Class Usage Examples

Public Properties

Property Type Description
$_description array Description reference of the last ::match() call.

Public Methods

Method 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 method

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 method

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

description() public static method

Returns the description report.
public static description ( )

match() public static method

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.
return boolean

Property Details

$_description public_oe static_oe property

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