Exemplo n.º 1
0
 protected function setUp()
 {
     $this->Header = $this->getMockForAbstractClass('\\BLW\\Type\\MIME\\IHeader');
     $this->Header->expects($this->any())->method('__toString')->will($this->returnValue("Mock Header: foo\r\n"));
     $this->Attachment = new Attachment(new GenericFile(self::FILE), 'test.png', 'image/png');
     $this->Part = new QuotedPrintable('text/plain', 'Test content', 'utf-8');
     $this->Section = new Section('multipart/mixed', 'mixed-boundary');
     $this->Body = new Body($this->Section);
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     $this->Header = $this->getMockForAbstractClass('\\BLW\\Type\\MIME\\IHeader');
     $this->Header->expects($this->any())->method('__toString')->will($this->returnValue("Mock Header: foo\r\n"));
     $this->Field = new FormField('Name', 'text/plain', 'Mr.X');
     $this->Part = new FormData(array($this->Field));
     $this->Body = new Body();
     $this->Section = new Section('multipart/mixed', 'mixed-boundary');
 }