PHP Class IdenticalBinaryConstraint, Halite

Author: Chris Corbyn
Inheritance: extends PHPUnit_Framework_Constraint
Afficher le fichier Open project: HaliteChallenge/Halite

Protected Properties

Свойство Type Description
$value

Méthodes publiques

Méthode Description
__construct ( $value )
matches ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
toString ( ) : string Returns a string representation of the constraint.

Private Methods

Méthode Description
asHexString ( string $binary ) : string Get the given string of bytes as a stirng of Hexadecimal sequences.

Method Details

__construct() public méthode

public __construct ( $value )

matches() public méthode

Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
public matches ( mixed $other ) : boolean
$other mixed Value or object to evaluate.
Résultat boolean

toString() public méthode

Returns a string representation of the constraint.
public toString ( ) : string
Résultat string

Property Details

$value protected_oe property

protected $value