and

fun <T> MokkeryMatcherScope.and(first: T, second: T, vararg moreMatchers: T): T(source)

Matches argument that satisfies all the matchers (first, second and all from moreMatchers).

Example:

// matches every `getForIndex` with arg that is in range 1..4
every { dependency.getForIndex(and(gte(1), lte(4))) }