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