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->Head = new Head();
     $this->Head[] = $this->Header;
     $this->Head[] = "Direct String\r\n";
     $this->Head[] = $this->Header;
     $this->Head[] = $this->Header;
 }
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->Version = new MIMEVersion('1.0');
     $this->Section = new Section('multipart/alternative');
     $this->Head = new Head($this->Version, $this->Section);
     $this->Head[] = $this->Header;
     $this->Head[] = "Direct String\r\n";
     $this->Head[] = $this->Header;
     $this->Head[] = $this->Header;
 }