PHP Class PHPUnit_Framework_Constraint_Or, qcodo

Author: Jan Borsodi ([email protected])
Author: Sebastian Bergmann ([email protected])
Inheritance: extends PHPUnit_Framework_Constraint
Show file Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Property Type Description
$constraints PHPUnit_Framework_Constraint[]

Public Methods

Method Description
count ( ) : integer Counts the number of constraint elements.
evaluate ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
setConstraints ( array $constraints )
toString ( ) : string Returns a string representation of the constraint.

Method Details

count() public method

Counts the number of constraint elements.
public count ( ) : integer
return integer

evaluate() public method

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

setConstraints() public method

public setConstraints ( array $constraints )
$constraints array

toString() public method

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

Property Details

$constraints protected property

protected PHPUnit_Framework_Constraint[] $constraints
return PHPUnit_Framework_Constraint[]