Method | 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. |
public __construct ( string $pattern, string $message = '%s' ) | ||
$pattern | string | Pattern to search for. |
$message | string | Customised message on failure. |
public testMessage ( string $compare ) : string | ||
$compare | string | Comparison value. |
return | string | Description of success or failure. |