PHP Class NoTextExpectation, simpletest

Inheritance: extends TextExpectation
Datei anzeigen Open project: simpletest/simpletest Class Usage Examples

Public Methods

Method Description
__construct ( string $substring, string $message = '%s' ) Sets the reject pattern
test ( string $compare ) : boolean Tests the expectation. False if the substring appears in the text.
testMessage ( string $compare ) : string Returns a human readable test message.

Method Details

__construct() public method

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

test() public method

Tests the expectation. False if the substring appears in the text.
public test ( string $compare ) : boolean
$compare string Comparison value.
return boolean True if correct.

testMessage() public method

Returns a human readable test message.
public testMessage ( string $compare ) : string
$compare string Comparison value.
return string Description of success or failure.