/** * @group DataModel * @group CollectionContains * @covers FOF30\Model\DataModel\Collection::contains * @dataProvider CollectionDataprovider::getTestContains */ public function testContains($test, $check) { $msg = 'Collection::contains %s - Case: ' . $check['case']; $items = $this->buildCollection(); $collection = new Collection($items); $result = $collection->contains($test['key']); $this->assertEquals($check['result'], $result, sprintf($msg, 'Failed to return the correct value')); }