PHP Class PHPUnit_Framework_Constraint_ObjectHasAttribute, qcodo

The attribute name is passed in the constructor.
Author: Sebastian Bergmann ([email protected])
Inheritance: extends PHPUnit_Framework_Constraint_ClassHasAttribute
Show file Open project: qcodo/qcodo Class Usage Examples

Public Methods

Method Description
evaluate ( mixed $other ) : boolean Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.

Protected Methods

Method Description
customFailureDescription ( $other, $description, $not )

Method Details

customFailureDescription() protected method

protected customFailureDescription ( $other, $description, $not )

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