/** * @expectedException InvalidArgumentException */ public function testInvalidAttachmentsThrowException() { $this->mailOptions->setAttachments(null); }