BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHPUnit_Framework_Constraint_ObjectHasAttribute Class Reference
Inheritance diagram for PHPUnit_Framework_Constraint_ObjectHasAttribute:
Collaboration diagram for PHPUnit_Framework_Constraint_ObjectHasAttribute:

Protected Member Functions

 matches ($other)
 
- Protected Member Functions inherited from PHPUnit_Framework_Constraint_ClassHasAttribute
 matches ($other)
 
 failureDescription ($other)
 
- Protected Member Functions inherited from PHPUnit_Framework_Constraint
 matches ($other)
 
 fail ($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure=null)
 
 additionalFailureDescription ($other)
 
 failureDescription ($other)
 

Additional Inherited Members

- Public Member Functions inherited from PHPUnit_Framework_Constraint_ClassHasAttribute
 __construct ($attributeName)
 
 toString ()
 
- Public Member Functions inherited from PHPUnit_Framework_Constraint
 evaluate ($other, $description= '', $returnResult=false)
 
 count ()
 
- Protected Attributes inherited from PHPUnit_Framework_Constraint_ClassHasAttribute
 $attributeName
 
- Protected Attributes inherited from PHPUnit_Framework_Constraint
 $exporter
 

Detailed Description

Constraint that asserts that the object it is evaluated for has a given attribute.

The attribute name is passed in the constructor.

Since
Class available since Release 3.0.0

Member Function Documentation

PHPUnit_Framework_Constraint_ObjectHasAttribute::matches (   $other)
protected

Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

Parameters
mixed$otherValue or object to evaluate.
Returns
bool

The documentation for this class was generated from the following file: