/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/IsArrayContaining.php (1497B)
_elementMatcher = $elementMatcher; } protected function matchesSafely($array) { foreach ($array as $element) { if ($this->_elementMatcher->matches($element)) { return true; } } return false; } protected function describeMismatchSafely($array, Description $mismatchDescription) { $mismatchDescription->appendText('was ')->appendValue($array); } public function describeTo(Description $description) { $description ->appendText('an array containing ') ->appendDescriptionOf($this->_elementMatcher) ; } /** * Evaluates to true if any item in an array satisfies the given matcher. * * @param mixed $item as a {@link Hamcrest\Matcher} or a value. * * @return \Hamcrest\Arrays\IsArrayContaining * @factory hasValue */ public static function hasItemInArray($item) { return new self(Util::wrapValueWithIsEqual($item)); } }