PHP Класс kahlan\matcher\ToHaveLength

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_description array Description reference of the last ::match() call.

Открытые методы

Метод Описание
_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.

Описание методов

_buildDescription() публичный статический Метод

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() публичный статический Метод

Normalize the actual value in the expected format.
public static actual ( mixed $actual ) : mixed
$actual mixed The actual value to be normalized.
Результат mixed The normalized value.

description() публичный статический Метод

Returns the description report.
public static description ( )

match() публичный статический Метод

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.
Результат boolean

Описание свойств

$_description публичное статическое свойство

Description reference of the last ::match() call.
public static array $_description
Результат array