|
Lggr
|


Public Member Functions | |
| __construct ($string, $ignoreCase=false) | |
| toString () | |
Public Member Functions inherited from PHPUnit\Framework\Constraint\Constraint | |
| evaluate ($other, $description='', $returnResult=false) | |
| count () | |
Protected Member Functions | |
| matches ($other) | |
Protected Member Functions inherited from PHPUnit\Framework\Constraint\Constraint | |
| fail ($other, $description, ComparisonFailure $comparisonFailure=null) | |
| additionalFailureDescription ($other) | |
| failureDescription ($other) | |
Protected Attributes | |
| $string | |
| $ignoreCase | |
Protected Attributes inherited from PHPUnit\Framework\Constraint\Constraint | |
| $exporter | |
Constraint that asserts that the string it is evaluated for contains a given string.
Uses mb_strpos() to find the position of the string in the input, if not found the evaluation fails.
The sub-string is passed in the constructor.
| PHPUnit\Framework\Constraint\StringContains::__construct | ( | $string, | |
$ignoreCase = false |
|||
| ) |
| string | $string | |
| bool | $ignoreCase |
|
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.
| PHPUnit\Framework\Constraint\StringContains::toString | ( | ) |
Returns a string representation of the constraint.
Implements PHPUnit\Framework\SelfDescribing.
1.8.17