Свойство | Тип | Описание | |
---|---|---|---|
$dumper |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
getDumper ( ) : SimpleDumper | Accessor for the dumper. |
public __construct ( string $message = '%s' ) | ||
$message | string | Customised message on failure. |
protected getDumper ( ) : SimpleDumper | ||
Результат | SimpleDumper | Current value dumper. |
public static isExpectation ( mixed $expectation ) : boolean | ||
$expectation | mixed | Hopefully an Expectation class. |
Результат | boolean | True if descended from this class. |
public overlayMessage ( mixed $compare, SimpleDumper $dumper ) : string | ||
$compare | mixed | Comparison value. |
$dumper | SimpleDumper | For formatting the results. |
Результат | string | Description of success or failure. |
public testMessage ( mixed $compare ) : string | ||
$compare | mixed | Comparison value. |
Результат | string | Description of success or failure. |