/var/www/cobraambalaj/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays
NameSizeModeActions
IsArray.php32880644editdlrm
IsArrayContaining.php14970644editdlrm
IsArrayContainingInAnyOrder.php14980644editdlrm
IsArrayContainingInOrder.php13920644editdlrm
IsArrayContainingKey.php19640644editdlrm
IsArrayContainingKeyValuePair.php22590644editdlrm
IsArrayWithSize.php14850644editdlrm
MatchingOnce.php16220644editdlrm
SeriesMatchingOnce.php18360644editdlrm
Edit: /var/www/cobraambalaj/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Arrays/SeriesMatchingOnce.php (1836B)
_elementMatchers = $elementMatchers; $this->_keys = array_keys($elementMatchers); $this->_mismatchDescription = $mismatchDescription; } public function matches($item) { return $this->_isNotSurplus($item) && $this->_isMatched($item); } public function isFinished() { if (!empty($this->_elementMatchers)) { $nextMatcher = current($this->_elementMatchers); $this->_mismatchDescription->appendText('No item matched: ')->appendDescriptionOf($nextMatcher); return false; } return true; } // -- Private Methods private function _isNotSurplus($item) { if (empty($this->_elementMatchers)) { $this->_mismatchDescription->appendText('Not matched: ')->appendValue($item); return false; } return true; } private function _isMatched($item) { $this->_nextMatchKey = array_shift($this->_keys); $nextMatcher = array_shift($this->_elementMatchers); if (!$nextMatcher->matches($item)) { $this->_describeMismatch($nextMatcher, $item); return false; } return true; } private function _describeMismatch(Matcher $matcher, $item) { $this->_mismatchDescription->appendText('item with key ' . $this->_nextMatchKey . ': '); $matcher->describeMismatch($item, $this->_mismatchDescription); } }