Index: trunk/extensions/wikidiff2/tests/003.phpt |
— | — | @@ -0,0 +1,34 @@ |
| 2 | +--TEST-- |
| 3 | +Diff test C: https://bugzilla.wikimedia.org/show_bug.cgi?id=27993 |
| 4 | +--SKIPIF-- |
| 5 | +<?php if (!extension_loaded("wikidiff2")) print "skip"; ?> |
| 6 | +--FILE-- |
| 7 | +<?php |
| 8 | +$x = <<<EOT |
| 9 | +!!FUZZY!!Rajaa |
| 10 | + |
| 11 | +EOT; |
| 12 | + |
| 13 | +#--------------------------------------------------- |
| 14 | + |
| 15 | +$y = <<<EOT |
| 16 | +Rajaa |
| 17 | + |
| 18 | +EOT; |
| 19 | + |
| 20 | +#--------------------------------------------------- |
| 21 | + |
| 22 | +print wikidiff2_do_diff( $x, $y, 2 ); |
| 23 | + |
| 24 | +?> |
| 25 | +--EXPECT-- |
| 26 | +<tr> |
| 27 | + <td colspan="2" class="diff-lineno"><!--LINE 1--></td> |
| 28 | + <td colspan="2" class="diff-lineno"><!--LINE 1--></td> |
| 29 | +</tr> |
| 30 | +<tr> |
| 31 | + <td class="diff-marker">−</td> |
| 32 | + <td class="diff-deletedline"><div>!!FUZZY!!Rajaa</div></td> |
| 33 | + <td class="diff-marker">+</td> |
| 34 | + <td class="diff-addedline"><div>Rajaa</div></td> |
| 35 | +</tr> |