public function testAttachments() { $this->assertSame($this->mailOptions, $this->mailOptions->setAttachments(array())); $this->assertInstanceof('AcMailer\\Options\\AttachmentsOptions', $this->mailOptions->getAttachments()); $expected = new AttachmentsOptions(); $this->assertSame($this->mailOptions, $this->mailOptions->setAttachments($expected)); $this->assertSame($expected, $this->mailOptions->getAttachments()); }