/** * @dataProvider getMatches */ public function testMatches($strategy, $criteria, $expected) { $repo = $this->getRepo('fooman'); $criterion = new Collection($strategy, $criteria); $this->assertEquals($expected, $criterion->matches($repo)); }