Evaluates the constraint for parameter $other. Returns TRUE if the constraint is met, FALSE otherwise.
mixed $other Value or object to evaluate.:
bool
Overrides PHPUnit_Framework_Constraint_ClassHasAttribute::matches
protected function matches($other) {
$object = new ReflectionObject($other);
return $object
->hasProperty($this->attributeName);
}