matchesComposite

Deprecated

Replaced by `matches` combined with `materialize`. See the migration guide in the `matchesComposite` KDoc.

DEPRECATED Matches an argument that satisfies a composite matcher created by builder from matchers.

To migrate, get the matcher objects with materialize and pass the composite to matches:

// before
fun <T> MokkeryMatcherScope.or(@Matcher first: T, @Matcher second: T): T {
return matchesComposite(first, second) { LogicalMatchers.Or(it) }
}

// after
fun <T> MokkeryMatcherScope.or(@Matcher first: T, @Matcher second: T): T {
return matches(LogicalMatchers.Or(materialize(first, second)))
}