Property | Type | Description | |
---|---|---|---|
$dumper |
Method | Description | |
---|---|---|
__construct ( string $message = '%s' ) | Creates a dumper for displaying values and sets the test message. | |
isExpectation ( mixed $expectation ) : boolean | Test to see if a value is an expectation object. A useful utility method. | |
overlayMessage ( mixed $compare, SimpleDumper $dumper ) : string | Overlays the generated message onto the stored user message. | |
test ( mixed $compare ) : boolean | Tests the expectation. True if correct. | |
testMessage ( mixed $compare ) : string | Returns a human readable test message. |
Method | Description | |
---|---|---|
getDumper ( ) : SimpleDumper | Accessor for the dumper. |
public __construct ( string $message = '%s' ) | ||
$message | string | Customised message on failure. |
protected getDumper ( ) : SimpleDumper | ||
return | SimpleDumper | Current value dumper. |
public static isExpectation ( mixed $expectation ) : boolean | ||
$expectation | mixed | Hopefully an Expectation class. |
return | boolean | True if descended from this class. |
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. |