Oh, and I am aware of assertStatementCount - thats too fragile (its an exact match) for my purposes, which is why this matcher is composable with a more primitive matcher - it can replace assertStatementCount if you use Equals, or be used in a looser way as I do in my example with LessThan. I'm going to look at making assertStatementCount into a trivial wrapper in a later patch.
Oh, and I am aware of assertStatement Count - thats too fragile (its an exact match) for my purposes, which is why this matcher is composable with a more primitive matcher - it can replace assertStatement Count if you use Equals, or be used in a looser way as I do in my example with LessThan. I'm going to look at making assertStatement Count into a trivial wrapper in a later patch.