PHP Класс EqualExpectation, simpletest

@package SimpleTest
Наследование: extends SimpleExpectation
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( mixed $value, string $message = '%s' ) Sets the value to compare against.
test ( mixed $compare ) : boolean Tests the expectation. True if it matches the held value.
testMessage ( mixed $compare ) : string Returns a human readable test message.

Защищенные методы

Метод Описание
getValue ( ) : mixed Accessor for comparison value.

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

__construct() публичный Метод

Sets the value to compare against.
public __construct ( mixed $value, string $message = '%s' )
$value mixed Test value to match.
$message string Customised message on failure.

getValue() защищенный Метод

Accessor for comparison value.
protected getValue ( ) : mixed
Результат mixed Held value to compare with.

test() публичный Метод

Tests the expectation. True if it matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
Результат boolean True if correct.

testMessage() публичный Метод

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
Результат string Description of success or failure.