Exemplo n.º 1
0
 /**
  * Close list tag.
  *
  * @param T_Text_List $node
  */
 function postTextList(T_Text_List $node)
 {
     if ($node->is(T_Text_List::ORDERED)) {
         $this->xhtml .= EOL . '</ol>';
     } else {
         $this->xhtml .= EOL . '</ul>';
     }
 }
Exemplo n.º 2
0
 function testParsesInsideAQuoteBlock()
 {
     $text = new T_Text_Quote('some citation', T_Text_List::ORDERED . " Item #1");
     $expect = new T_Text_Quote('some citation', null);
     $expect->addChild($list = new T_Text_List(T_Text_List::ORDERED));
     $list->addChild(new T_Text_ListItem('Item #1'));
     $text->accept(new T_Text_ListLexer());
     $this->assertEquals($expect, $text);
 }