/** * @expectedException RuntimeException */ public function testSetGroupId() { $file = new TempFile(); $file->setGroupId(0); }