Метод | Описание | |
---|---|---|
__construct ( mixed $value, string $message = '%s' ) | Sets the field value to compare against. | |
test ( mixed $compare ) : boolean | Tests the expectation. True if it matches a string value or an array value in any order. | |
testMessage ( mixed $compare ) : string | Returns a human readable test message. |
Метод | Описание | |
---|---|---|
isSingle ( mixed $value ) : boolean | Tests for valid field comparisons with a single option. | |
testMultiple ( mixed $compare ) | List comparison for multivalue field. | |
testSingle ( mixed $compare ) | String comparison for simple field with a single option. |
public __construct ( mixed $value, string $message = '%s' ) | ||
$value | mixed | Test value to match. Can be an expectation for say pattern matching. |
$message | string | Optional message override. Can use %s as a placeholder for theoriginal message. |
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
Результат | string | Description of success or failure. |
protected testMultiple ( mixed $compare ) | ||
$compare | mixed | List in any order to test against. |
protected testSingle ( mixed $compare ) | ||
$compare | mixed | String to test against. |