diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-01-25 23:18:55 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-01-25 23:18:55 +0100 |
commit | c0ddfaa565d7b4631a7276e0dacf358d046b8d46 (patch) | |
tree | f2562cd87a430ef6ee88e891034beb70d67f90f5 /_test/cases/inc/parser | |
parent | 30506cef7e42d95d7444431298106632d4fbf90f (diff) | |
download | rpg-c0ddfaa565d7b4631a7276e0dacf358d046b8d46.tar.gz rpg-c0ddfaa565d7b4631a7276e0dacf358d046b8d46.tar.bz2 |
fixed multiple unit tests. (1 failing)
Ignore-this: 261098274bce329f446fc8768c25b9e5
Most failing tests were just out of date, because certain behavior was
changed.
There is one test failing for parsing italic tests. This can probably not
be fixed without larger changes at the parser to catch runaway lines at
the paragraph end. FS#1574
darcs-hash:20090125221855-7ad00-968655d609945aae764c3124fb906ce086025df4.gz
Diffstat (limited to '_test/cases/inc/parser')
-rw-r--r-- | _test/cases/inc/parser/parser_formatting.test.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/_test/cases/inc/parser/parser_formatting.test.php b/_test/cases/inc/parser/parser_formatting.test.php index de125e3c1..3c7449a35 100644 --- a/_test/cases/inc/parser/parser_formatting.test.php +++ b/_test/cases/inc/parser/parser_formatting.test.php @@ -6,7 +6,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { function TestOfDoku_Parser_Formatting() { $this->UnitTestCase('TestOfDoku_Parser_Formatting'); } - + function testStrong() { $this->P->addMode('strong',new Doku_Parser_Mode_Formatting('strong')); $this->P->parse('abc **bar** def'); @@ -23,7 +23,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testNotStrong() { $this->P->addMode('strong',new Doku_Parser_Mode_Formatting('strong')); $this->P->parse('abc **bar def'); @@ -53,7 +53,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testNotEm() { $this->P->addMode('emphasis',new Doku_Parser_Mode_Formatting('emphasis')); $this->P->parse('abc //bar def'); @@ -113,7 +113,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testNotMonospace() { $this->P->addMode('monospace',new Doku_Parser_Mode_Formatting('monospace')); $this->P->parse("abc ''bar def"); @@ -143,7 +143,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testNotSubscript() { $this->P->addMode('subscript',new Doku_Parser_Mode_Formatting('subscript')); $this->P->parse('abc <sub>bar def'); @@ -156,7 +156,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testSuperscript() { $this->P->addMode('superscript',new Doku_Parser_Mode_Formatting('superscript')); $this->P->parse("abc <sup>bar</sup> def"); @@ -203,7 +203,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testNotDeleted() { $this->P->addMode('deleted',new Doku_Parser_Mode_Formatting('deleted')); $this->P->parse('abc <del>bar def'); @@ -238,7 +238,7 @@ class TestOfDoku_Parser_Formatting extends TestOfDoku_Parser { ); $this->assertEqual(array_map('stripbyteindex',$this->H->calls),$calls); } - + function testIllegalNestedFormatting() { $this->P->addMode('strong',new Doku_Parser_Mode_Formatting('strong')); $this->P->parse('abc **a**b**c** def'); |