PHP Класс NoPatternExpectation, simpletest

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

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

Метод Описание
__construct ( string $pattern, string $message = '%s' ) Sets the reject pattern
test ( string $compare ) : boolean Tests the expectation. False if the Perl regex matches the comparison value.
testMessage ( string $compare ) : string Returns a human readable test message.

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

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

Sets the reject pattern
public __construct ( string $pattern, string $message = '%s' )
$pattern string Pattern to search for.
$message string Customised message on failure.

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

Tests the expectation. False if the Perl regex matches the comparison value.
public test ( string $compare ) : boolean
$compare string Comparison value.
Результат boolean True if correct.

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

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