프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |