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

Public Member Functions

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

Protected Member Functions

 matches ($other)
 
 getCountOf ($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)
 

Protected Attributes

 $expectedCount = 0
 
- Protected Attributes inherited from PHPUnit_Framework_Constraint
 $exporter
 

Detailed Description

Since
Class available since Release 3.6.0

Constructor & Destructor Documentation

PHPUnit_Framework_Constraint_Count::__construct (   $expected)
Parameters
int$expected

Member Function Documentation

PHPUnit_Framework_Constraint_Count::failureDescription (   $other)
protected

Returns the description of the failure

The beginning of failure messages is "Failed asserting that" in most cases. This method should return the second part of that sentence.

Parameters
mixed$otherEvaluated value or object.
Returns
string
PHPUnit_Framework_Constraint_Count::getCountOf (   $other)
protected
Parameters
mixed$other
Returns
bool
PHPUnit_Framework_Constraint_Count::matches (   $other)
protected

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

Parameters
mixed$other
Returns
bool
PHPUnit_Framework_Constraint_Count::toString ( )
Returns
string

Implements PHPUnit_Framework_SelfDescribing.


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