/** * @dataProvider getDataboxAndCollection * @expectedException \InvalidArgumentException */ public function testInvalidCollection($databox, $collection) { $this->object->restrictToCollections($databox); }