PHP Class PHPUnit_Framework_Constraint_And, qcodo

Author: Sebastian Bergmann ([email protected])
Inheritance: extends PHPUnit_Framework_Constraint
Afficher le fichier Open project: qcodo/qcodo Class Usage Examples

Protected Properties

Свойство Type Description
$constraints PHPUnit_Framework_Constraint[]
$lastConstraint PHPUnit_Framework_Constraint

Méthodes publiques

Méthode 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.
fail ( mixed $other, string $description, boolean $not = FALSE )
setConstraints ( array $constraints )
toString ( ) : string Returns a string representation of the constraint.

Method Details

count() public méthode

Counts the number of constraint elements.
public count ( ) : integer
Résultat integer

evaluate() public méthode

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.
Résultat boolean

fail() public méthode

public fail ( mixed $other, string $description, boolean $not = FALSE )
$other mixed The value passed to evaluate() which failed the constraint check.
$description string A string with extra description of what was going on while the evaluation failed.
$not boolean Flag to indicate negation.

setConstraints() public méthode

public setConstraints ( array $constraints )
$constraints array

toString() public méthode

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

Property Details

$constraints protected_oe property

protected PHPUnit_Framework_Constraint[] $constraints
Résultat PHPUnit_Framework_Constraint[]

$lastConstraint protected_oe property

protected PHPUnit_Framework_Constraint $lastConstraint
Résultat PHPUnit_Framework_Constraint