getAttachments() public method

Returns the list of attachments
public getAttachments ( ) : array
return array
 public function testAttachmentsTotal()
 {
     $this->assertCount(0, $this->mailService->getAttachments());
     $this->mailService->setAttachments(array('one', 'two', 'three'));
     $this->mailService->addAttachments(array('four', 'five', 'six'));
     $this->mailService->addAttachment('seven');
     $this->mailService->addAttachment('eight', 'with-alias');
     $this->assertCount(8, $this->mailService->getAttachments());
     $this->mailService->setAttachments(array('one', 'two'));
     $this->assertCount(2, $this->mailService->getAttachments());
     $this->mailService->addAttachments(array('three', 'four'));
     $this->assertCount(4, $this->mailService->getAttachments());
 }