PHP Класс NotAExpectation, simpletest

Will succeed if the type does not match.
Наследование: extends IsAExpectation
Показать файл Открыть проект Примеры использования класса

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

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

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

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

Sets the type to compare with.
public __construct ( string $type, string $message = '%s' )
$type string Type or class name.
$message string Customised message on failure.

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

Tests the expectation. False if the type or class matches the string value.
public test ( string $compare ) : boolean
$compare string Comparison value.
Результат boolean True if different.

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

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