PHP Class NoPatternExpectation, simpletest

Inheritance: extends PatternExpectation
Afficher le fichier Open project: simpletest/simpletest Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

test() public méthode

Tests the expectation. False if the Perl regex matches the comparison value.
public test ( string $compare ) : boolean
$compare string Comparison value.
Résultat boolean True if correct.

testMessage() public méthode

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