78 if (is_array($other)) {
80 foreach ($other as $item) {
82 $success = ($success === NULL ? $currentSuccess : $success || $currentSuccess);
84 return !empty($success);
103 foreach ($records as $recordIdentifier => $recordData) {
104 if (strpos($recordIdentifier, $this->table .
':') !== 0) {
108 if (($foundValueIndex = array_search($recordData[$this->field],
$values)) !== FALSE) {
109 unset(
$values[$foundValueIndex]);
123 foreach ($records as $recordIdentifier => $recordData) {
124 if (strpos($recordIdentifier, $this->table .
':') !== 0) {
125 unset($records[$recordIdentifier]);
129 if (($foundValueIndex = array_search($recordData[$this->field],
$values)) !== FALSE) {
130 unset(
$values[$foundValueIndex]);
131 unset($records[$recordIdentifier]);
148 return $this->toString();
161 $failureDescription =
'';
162 foreach ($this->sectionFailures as $sectionIdentifier => $sectionFailure) {
163 $failureDescription .=
'* Section "' . $sectionIdentifier .
'": ' . $sectionFailure . LF;
165 return $failureDescription;
getNonMatchingValues(array $records)
getRemainingRecords(array $records)
failureDescription($other)
additionalFailureDescription($other)
matchesSection(ResponseSection $responseSection)