Пример #1
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.
 */
function hasValue($item)
{
    require_once 'Hamcrest/Array/IsArrayContaining.php';
    return Hamcrest_Array_IsArrayContaining::hasItemInArray($item);
}
 protected function createMatcher()
 {
     return Hamcrest_Array_IsArrayContaining::hasItemInArray('irrelevant');
 }