Method | Description | |
---|---|---|
__construct ( $expected = false, string $message = '%s' ) | Sets the expected parameter list. | |
test ( array $parameters ) : boolean | Tests the assertion. True if correct. | |
testMessage ( $parameters ) : string | Returns a human readable test message. |
Method | Description | |
---|---|---|
coerceToExpectation ( mixed $expected ) : SimpleExpectation | Creates an identical expectation if the object/value is not already some type of expectation. | |
describeDifference ( array $expected, array $parameters ) : string | Message to display if expectation differs from the parameters actually received. | |
renderArguments ( array $args ) : string | Renders the argument list as a string for messages. | |
testParameter ( mixed $parameter, mixed $expected ) : boolean | Tests an individual parameter. |
public __construct ( $expected = false, string $message = '%s' ) | ||
$message | string | Customised message on failure. |
protected coerceToExpectation ( mixed $expected ) : SimpleExpectation | ||
$expected | mixed | Expected value. |
return | SimpleExpectation | Expectation object. |
protected renderArguments ( array $args ) : string | ||
$args | array | Incoming arguments. |
return | string | Simple description of type and value. |
public testMessage ( $parameters ) : string | ||
return | string | Description of success or failure. |