|
file-fetcher
|
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.
Public Member Functions | |
| __construct (string $pattern) | |
| 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) | |
| PHPUnit\Framework\Constraint\RegularExpression::__construct | ( | string | $pattern | ) |
Reimplemented in PHPUnit\Framework\Constraint\StringMatchesFormatDescription.
|
protected |
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.
| mixed | $other | value or object to evaluate |
Reimplemented from PHPUnit\Framework\Constraint\Constraint.
Reimplemented in PHPUnit\Framework\Constraint\StringMatchesFormatDescription.
| PHPUnit\Framework\Constraint\RegularExpression::toString | ( | ) |
Returns a string representation of the constraint.
Implements PHPUnit\Framework\SelfDescribing.
1.8.17