Ejemplo n.º 1
0
 /**
  * run() should reset the paragraph state
  */
 public function testRun_resetsParagraphState()
 {
     $style = new \Jstewmc\Rtf\Style();
     $old = $style->getParagraph()->getIndex();
     $style->getParagraph()->setIndex(999);
     $element = new Pard();
     $element->setStyle($style);
     $element->run();
     $new = $style->getParagraph()->getIndex();
     $this->assertEquals($old, $new);
     return;
 }
Ejemplo n.º 2
0
 /**
  * run() should increment the paragraph index
  */
 public function testRun_incrementsParagraphIndex()
 {
     $style = new \Jstewmc\Rtf\Style();
     $old = $style->getParagraph()->getIndex();
     $element = new Par();
     $element->setStyle($style);
     $element->run();
     $new = $style->getParagraph()->getIndex();
     $this->assertGreaterThan($old, $new);
     return;
 }