diff options
-rw-r--r-- | _test/cases/inc/parser/parser_footnote.test.php | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/_test/cases/inc/parser/parser_footnote.test.php b/_test/cases/inc/parser/parser_footnote.test.php index 6f0789106..edb5778ff 100644 --- a/_test/cases/inc/parser/parser_footnote.test.php +++ b/_test/cases/inc/parser/parser_footnote.test.php @@ -2,16 +2,16 @@ require_once 'parser.inc.php'; class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { - + function TestOfDoku_Parser_Footnote() { $this->UnitTestCase('TestOfDoku_Parser_Footnote'); } - + function setup() { parent::setup(); $this->P->addMode('footnote',new Doku_Parser_Mode_Footnote()); } - + function testFootnote() { $this->P->parse('Foo (( testing )) Bar'); $calls = array ( @@ -29,7 +29,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testNotAFootnote() { $this->P->parse("Foo (( testing\n Bar"); $calls = array ( @@ -41,7 +41,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteLinefeed() { $this->P->addMode('eol',new Doku_Parser_Mode_Eol()); $this->P->parse("Foo (( testing\ntesting )) Bar"); @@ -60,7 +60,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteNested() { $this->P->parse('Foo (( x((y))z )) Bar'); $calls = array ( @@ -78,7 +78,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteEol() { $this->P->addMode('eol',new Doku_Parser_Mode_Eol()); $this->P->parse("Foo \nX(( test\ning ))Y\n Bar"); @@ -97,7 +97,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteStrong() { $this->P->addMode('strong',new Doku_Parser_Mode_Formatting('strong')); $this->P->parse('Foo (( **testing** )) Bar'); @@ -120,7 +120,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteHr() { $this->P->addMode('hr',new Doku_Parser_Mode_HR()); $this->P->parse("Foo (( \n ---- \n )) Bar"); @@ -141,7 +141,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteCode() { $this->P->addMode('code',new Doku_Parser_Mode_Code()); $this->P->parse("Foo (( <code>Test</code> )) Bar"); @@ -152,7 +152,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { array('nest', array ( array ( array('footnote_open',array()), array('cdata',array(' ')), - array('code',array('Test',NULL)), + array('code',array('Test',null,null)), array('cdata',array(' ')), array('footnote_close',array()), ))), @@ -162,7 +162,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnotePreformatted() { $this->P->addMode('preformatted',new Doku_Parser_Mode_Preformatted()); $this->P->parse("Foo (( \n Test\n )) Bar"); @@ -183,7 +183,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnotePreformattedEol() { $this->P->addMode('preformatted',new Doku_Parser_Mode_Preformatted()); $this->P->addMode('eol',new Doku_Parser_Mode_Eol()); @@ -205,7 +205,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteUnformatted() { $this->P->addMode('unformatted',new Doku_Parser_Mode_Unformatted()); $this->P->parse("Foo (( <nowiki>Test</nowiki> )) Bar"); @@ -226,7 +226,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteNotHeader() { $this->P->addMode('unformatted',new Doku_Parser_Mode_Unformatted()); $this->P->parse("Foo (( \n====Test====\n )) Bar"); @@ -245,10 +245,10 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteTable() { $this->P->addMode('table',new Doku_Parser_Mode_Table()); - $this->P->parse("Foo (( + $this->P->parse("Foo (( | Row 0 Col 1 | Row 0 Col 2 | Row 0 Col 3 | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | )) Bar"); @@ -261,24 +261,24 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { array('cdata',array(' ')), array('table_open',array(3,2)), array('tablerow_open',array()), - array('tablecell_open',array(1,'left')), + array('tablecell_open',array(1,'left',1)), array('cdata',array(' Row 0 Col 1 ')), array('tablecell_close',array()), - array('tablecell_open',array(1,'left')), + array('tablecell_open',array(1,'left',1)), array('cdata',array(' Row 0 Col 2 ')), array('tablecell_close',array()), - array('tablecell_open',array(1,'left')), + array('tablecell_open',array(1,'left',1)), array('cdata',array(' Row 0 Col 3 ')), array('tablecell_close',array()), array('tablerow_close',array()), array('tablerow_open',array()), - array('tablecell_open',array(1,'left')), + array('tablecell_open',array(1,'left',1)), array('cdata',array(' Row 1 Col 1 ')), array('tablecell_close',array()), - array('tablecell_open',array(1,'left')), + array('tablecell_open',array(1,'left',1)), array('cdata',array(' Row 1 Col 2 ')), array('tablecell_close',array()), - array('tablecell_open',array(1,'left')), + array('tablecell_open',array(1,'left',1)), array('cdata',array(' Row 1 Col 3 ')), array('tablecell_close',array()), array('tablerow_close',array()), @@ -295,7 +295,7 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { function testFootnoteList() { $this->P->addMode('listblock',new Doku_Parser_Mode_ListBlock()); - $this->P->parse("Foo (( + $this->P->parse("Foo (( *A * B * C @@ -335,10 +335,10 @@ class TestOfDoku_Parser_Footnote extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testFootnoteQuote() { $this->P->addMode('quote',new Doku_Parser_Mode_Quote()); - $this->P->parse("Foo (( + $this->P->parse("Foo (( > def >>ghi )) Bar"); |