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

Detailed Description

Constraint that asserts that the string it is evaluated for begins with a given prefix.

Public Member Functions

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

Protected Member Functions

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

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\Constraint\StringStartsWith::__construct ( string  $prefix)

Member Function Documentation

◆ matches()

PHPUnit\Framework\Constraint\StringStartsWith::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

Reimplemented from PHPUnit\Framework\Constraint\Constraint.

◆ toString()

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

Returns a string representation of the constraint.

Implements PHPUnit\Framework\SelfDescribing.


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