BlueSpice MediaWiki master
|
Public Member Functions | |
__construct ($pattern) | |
toString () | |
![]() | |
evaluate ($other, $description= '', $returnResult=false) | |
count () | |
Protected Member Functions | |
matches ($other) | |
![]() | |
matches ($other) | |
fail ($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure=null) | |
additionalFailureDescription ($other) | |
failureDescription ($other) | |
Protected Attributes | |
$pattern | |
![]() | |
$exporter | |
Constraint that asserts that the string it is evaluated for matches a regular expression.
Checks a given value using the Perl Compatible Regular Expression extension in PHP. The pattern is matched by executing preg_match().
The pattern string passed in the constructor.
PHPUnit_Framework_Constraint_PCREMatch::__construct | ( | $pattern | ) |
string | $pattern |
|
protected |
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
mixed | $other | Value or object to evaluate. |
PHPUnit_Framework_Constraint_PCREMatch::toString | ( | ) |
Returns a string representation of the constraint.
Implements PHPUnit_Framework_SelfDescribing.