/** * @expectedException \Exception * @expectedExceptionMessage Collection Structure does not contain field fieldName * @return void */ public function testSetValueWithException() { $this->recordCollection->setValue('fieldName', 'default'); }