PHP Класс MethodExistsExpectation, simpletest

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

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

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

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

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

Sets the value to compare against.
public __construct ( string $method, string $message = '%s' )
$method string Method to check.
$message string Customised message on failure.

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

Tests the expectation. True if the method exists in the test object.
public test ( string $compare ) : boolean
$compare string Comparison method name.
Результат 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.