메소드 | 설명 | |
---|---|---|
__construct ( string $pattern, string $message = '%s' ) | Sets the value to compare against. | |
test ( string $compare ) : boolean | Tests the expectation. True if the Perl regex matches the comparison value. | |
testMessage ( mixed $compare ) : string | Returns a human readable test message. |
메소드 | 설명 | |
---|---|---|
describePatternMatch ( string $pattern, string $subject ) | Describes a pattern match including the string found and it's position. | |
getPattern ( ) : string | Accessor for the pattern. |
public __construct ( string $pattern, string $message = '%s' ) | ||
$pattern | string | Pattern to search for. |
$message | string | Customised message on failure. |
protected describePatternMatch ( string $pattern, string $subject ) | ||
$pattern | string | Regex to match against. |
$subject | string | Subject to search. |
protected getPattern ( ) : string | ||
리턴 | string | Perl regex as string. |
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
리턴 | string | Description of success or failure. |