file-fetcher
Public Member Functions | Protected Member Functions | List of all members
PHPUnit\Framework\Constraint\Count Class Reference
Inheritance diagram for PHPUnit\Framework\Constraint\Count:
PHPUnit\Framework\Constraint\Constraint PHPUnit\Framework\SelfDescribing PHPUnit\Framework\Constraint\SameSize

Public Member Functions

 __construct (int $expected)
 
 toString ()
 
- Public Member Functions inherited from PHPUnit\Framework\Constraint\Constraint
 evaluate ($other, string $description='', bool $returnResult=false)
 
 count ()
 

Protected Member Functions

 matches ($other)
 
 getCountOf ($other)
 
 getCountOfGenerator (Generator $generator)
 
 failureDescription ($other)
 
- Protected Member Functions inherited from PHPUnit\Framework\Constraint\Constraint
 exporter ()
 
 fail ($other, $description, ComparisonFailure $comparisonFailure=null)
 
 additionalFailureDescription ($other)
 

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\Constraint\Count::__construct ( int  $expected)

Member Function Documentation

◆ failureDescription()

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

Reimplemented from PHPUnit\Framework\Constraint\Constraint.

◆ getCountOf()

PHPUnit\Framework\Constraint\Count::getCountOf (   $other)
protected
Parameters
iterable$other

◆ getCountOfGenerator()

PHPUnit\Framework\Constraint\Count::getCountOfGenerator ( Generator  $generator)
protected

Returns the total number of iterations from a generator. This will fully exhaust the generator.

◆ matches()

PHPUnit\Framework\Constraint\Count::matches (   $other)
protected

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

Reimplemented from PHPUnit\Framework\Constraint\Constraint.

◆ toString()

PHPUnit\Framework\Constraint\Count::toString ( )

Returns a string representation of the object.

Implements PHPUnit\Framework\SelfDescribing.


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