PHP Class EqualExpectation, simpletest

@package SimpleTest
Inheritance: extends SimpleExpectation
Mostra file Open project: simpletest/simpletest Class Usage Examples

Public Methods

Method Description
__construct ( mixed $value, string $message = '%s' ) Sets the value to compare against.
test ( mixed $compare ) : boolean Tests the expectation. True if it matches the held value.
testMessage ( mixed $compare ) : string Returns a human readable test message.

Protected Methods

Method Description
getValue ( ) : mixed Accessor for comparison value.

Method Details

__construct() public method

Sets the value to compare against.
public __construct ( mixed $value, string $message = '%s' )
$value mixed Test value to match.
$message string Customised message on failure.

getValue() protected method

Accessor for comparison value.
protected getValue ( ) : mixed
return mixed Held value to compare with.

test() public method

Tests the expectation. True if it matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
return boolean True if correct.

testMessage() public method

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
return string Description of success or failure.