b2evolution PHP Cross Reference Blogging Systems

Source: /inc/_ext/phpsvnclient/ext/Diff/tests/pear_bug6428.phpt - 18 lines - 440 bytes - Text - Print

   1  --TEST--
   2  Text_Diff: PEAR Bug #6428 (problem with single digits after space)
   3  --FILE--
   4  <?php
   5  include_once 'Text/Diff.php';
   6  include_once 'Text/Diff/Renderer/inline.php';
   7  
   8  $from = array('Line 1',  'Another line');
   9  $to   = array('Line  1', 'Another line');
  10  
  11  $diff = new Text_Diff('native', array($from, $to));
  12  $renderer = new Text_Diff_Renderer_inline();
  13  
  14  echo $renderer->render($diff);
  15  ?>
  16  --EXPECT--
  17  Line <del>1</del><ins> 1</ins>
  18  Another line

title

Description

title

Description

title

Description

title

title

Body