public setWriter ( PHPRtfLite_Writer_Interface $writer ) | ||
$writer | PHPRtfLite_Writer_Interface |
public function setWriter(PHPRtfLite_Writer_Interface $writer)
{
$this->_writer = $writer;
}
/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { // register PHPRtfLite class loader $this->_rtf = new PHPRtfLite(); $writer = new PHPRtfLite_Writer_String(); $this->_rtf->setWriter($writer); }