/** * @expectedException \AcMailer\Exception\InvalidArgumentException */ public function testInvalidAttachmentsThrowException() { $this->messageOptions->setAttachments('foo'); }