PHP Класс kahlan\matcher\ToBeA

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

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

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

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

Метод Описание
_buildDescription ( string $actual, string $expected ) Build the description of the runned ::match() call.
actual ( mixed $actual ) : mixed Normalises the actual value in the expected format.
description ( ) Returns the description report.
expected ( mixed $expected ) : mixed Normalises the expected value.
match ( mixed $actual, mixed $expected ) : boolean Checks that $actual is of the $expected type.

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

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

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

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

Normalises 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 ( )

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

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

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

Checks that $actual is of the $expected type.
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