예제 #1
0
 /**
  * Returns the current Plain Text content
  */
 public function getPlain()
 {
     $plainConverter = $this->newsletter->getPlainConverterInstance();
     $plainText = $plainConverter->getPlaintext($this->getHtml(), $this->domain);
     return $plainText;
 }
예제 #2
0
 /**
  * @test
  * @expectedException Exception
  */
 public function getPlainConverterInstanceThrowsException()
 {
     $this->subject->setPlainConverter('stdClass');
     $this->subject->getPlainConverterInstance();
 }