/**
  * tests getContent().
  */
 public function testGetContent()
 {
     $this->_parFormat->setIndentLeft(5);
     $this->_parFormat->setIndentRight(5);
     $this->_parFormat->setSpaceBefore(5);
     $this->_parFormat->setSpaceAfter(5);
     $this->_parFormat->setIndentFirstLine(3);
     $this->_parFormat->setSpaceBetweenLines(1.2);
     $this->_parFormat->setShading(50);
     $this->assertEquals('\\ql \\fi1701 \\li2835 \\ri2835 \\sb100 \\sa100 \\sl288 \\shading5000 ', $this->_parFormat->getContent());
 }
$sect = $rtf->addSection();
//table
$table = $sect->addTable();
$table->addRows(1);
$table->addRows(1);
$table->addColumn(1);
$table->addColumn(14);
$cell = $table->getCell(1, 2);
$cell->writeText('Testing paragraphs in table cells.', new PHPRtfLite_Font(14, 'Arial'), $parHead);
$cell = $table->getCell(2, 2);
$cell->addEmptyParagraph($fontSmall, $parBlack);
$cell->writeText('Various paragraphs', $fontHead, $parHead);
$par = new PHPRtfLite_ParFormat('center');
$par->setIndentLeft(10);
$par->setBackgroundColor('#99ccff');
$par->setSpaceBetweenLines(2);
$cell->writeText('Alignment: center
Indent Left: 10
BackColor: #99ccff', new PHPRtfLite_Font(8, 'Verdana'), $par);
$par = new PHPRtfLite_ParFormat('right');
$par->setIndentLeft(5);
$par->setIndentRight(5);
$par->setBackgroundColor('#ffcc99');
$border = PHPRtfLite_Border::create($rtf, 1, '#ff0000');
$par->setBorder($border);
$cell->addEmptyParagraph();
$cell->writeText('Alignment: right
Indent Left: 5
Indent Right: 10
BackColor: #ffcc99
Border: red', new PHPRtfLite_Font(8, 'Verdana'), $par);