Пример #1
0
 public function generateMessage()
 {
     $this->Message->setParent($this->getMockForAbstractClass('\\BLW\\Type\\IObject'));
     $this->Message->setMediator($this->getMockForAbstractClass('\\BLW\\Type\\IMediator'));
     $this->Message->addTo(new GenericEmailAddress('*****@*****.**', 'Receiver'));
     $this->Message->addFrom(new GenericEmailAddress('*****@*****.**', 'Sender'));
     $this->Message->addReplyTo(new GenericEmailAddress('*****@*****.**', 'Sender'));
     $this->Message->addCC(new GenericEmailAddress('*****@*****.**', 'CC'));
     $this->Message->addBCC(new GenericEmailAddress('*****@*****.**', 'BCC'));
     $this->Message->setSubject('Test Subject');
     $this->Message->setHTML(new \DOMDocument('1.0'));
     $this->Message->setText('Text Body');
     $this->Message->addAttachment(new GenericFile(self::FILE));
     $this->Message->InlineAttachment(new GenericFile(self::FILE));
 }