Method | Description | |
---|---|---|
__construct ( mixed &$value, string $message = '%s' ) | Sets the reference value to compare against. | |
overlayMessage ( mixed $compare, SimpleDumper $dumper ) : string | Overlays the generated message onto the stored user message. | |
test ( mixed &$compare ) : boolean | Tests the expectation. True if it exactly references the held value. | |
testMessage ( mixed $compare ) : string | Returns a human readable test message. |
Method | Description | |
---|---|---|
getDumper ( ) : SimpleDumper | Accessor for the dumper. |
public __construct ( mixed &$value, string $message = '%s' ) | ||
$value | mixed | Test reference to match. |
$message | string | Customised message on failure. |
protected getDumper ( ) : SimpleDumper | ||
return | SimpleDumper | Current value dumper. |
public overlayMessage ( mixed $compare, SimpleDumper $dumper ) : string | ||
$compare | mixed | Comparison value. |
$dumper | SimpleDumper | For formatting the results. |
return | string | Description of success or failure. |
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
return | string | Description of success or failure. |