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