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

Public Member Functions

 __construct ($callback)
 
 toString ()
 
- Public Member Functions inherited from PHPUnit_Framework_Constraint
 evaluate ($other, $description= '', $returnResult=false)
 
 count ()
 

Protected Member Functions

 matches ($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

- Protected Attributes inherited from PHPUnit_Framework_Constraint
 $exporter
 

Detailed Description

Constraint that evaluates against a specified closure.

Constructor & Destructor Documentation

PHPUnit_Framework_Constraint_Callback::__construct (   $callback)
Parameters
callable$callback
Exceptions
PHPUnit_Framework_Exception

Member Function Documentation

PHPUnit_Framework_Constraint_Callback::matches (   $other)
protected

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

Parameters
mixed$otherValue or object to evaluate.
Returns
bool
PHPUnit_Framework_Constraint_Callback::toString ( )

Returns a string representation of the constraint.

Returns
string

Implements PHPUnit_Framework_SelfDescribing.


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