PHP Class PHPUnit_Framework_Constraint_Not, qcodo

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

Protected Properties

Property Type Description
$constraint PHPUnit_Framework_Constraint

Public Methods

Method Description
__construct ( PHPUnit_Framework_Constraint $constraint )
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 )
toString ( ) : string Returns a string representation of the constraint.

Method Details

__construct() public method

public __construct ( PHPUnit_Framework_Constraint $constraint )
$constraint PHPUnit_Framework_Constraint

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

fail() public method

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.

toString() public method

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

Property Details

$constraint protected_oe property

protected PHPUnit_Framework_Constraint $constraint
return PHPUnit_Framework_Constraint