PHP Class IdenticalBinaryConstraint, Halite

Author: Chris Corbyn
Inheritance: extends PHPUnit_Framework_Constraint
Show file Open project: HaliteChallenge/Halite

Protected Properties

Property Type Description
$value

Public Methods

Method 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

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

Method Details

__construct() public method

public __construct ( $value )

matches() public method

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.
return boolean

toString() public method

Returns a string representation of the constraint.
public toString ( ) : string
return string

Property Details

$value protected property

protected $value