BlueSpice MediaWiki master
|
Public Member Functions | |
__construct ($string, $ignoreCase=false) | |
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 | |
$string | |
$ignoreCase | |
![]() | |
$exporter | |
Constraint that asserts that the string it is evaluated for contains a given string.
Uses 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. |
PHPUnit_Framework_Constraint_StringContains::toString | ( | ) |
Returns a string representation of the constraint.
Implements PHPUnit_Framework_SelfDescribing.