/** * @expectedException \InvalidArgumentException */ public function testSetDigestTypeThrowsOnInvalidValue() { $dataFile = new DataFileInfo(); $dataFile->setDigestType('wrong type'); }