PHP Class IdenticalEntityExpectation, Elgg

Inheritance: extends EqualExpectation
Afficher le fichier Open project: elgg/elgg

Méthodes publiques

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

Méthodes protégées

Méthode Description
entityToFilteredArray ( ElggEntity $entity ) : array Converts entity to array and filters not important attributes

Method Details

__construct() public méthode

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.

entityToFilteredArray() protected méthode

Converts entity to array and filters not important attributes
protected entityToFilteredArray ( ElggEntity $entity ) : array
$entity ElggEntity An entity to convert
Résultat array

test() public méthode

Tests the expectation. True if it exactly matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
Résultat boolean

testMessage() public méthode

Returns a human readable test message.
public testMessage ( mixed $compare ) : string
$compare mixed Comparison value.
Résultat string