コード例 #1
0
 protected function createMatcher()
 {
     return IsArrayContaining::hasItemInArray('irrelevant');
 }
コード例 #2
0
 /**
  * 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
  */
 function hasValue($item)
 {
     return \Hamcrest\Arrays\IsArrayContaining::hasItemInArray($item);
 }