b2evolution PHP Cross Reference Blogging Systems

Source: /inc/_ext/phpsvnclient/ext/Diff/tests/pear_bug12740.phpt - 30 lines - 826 bytes - Text - Print

   1  --TEST--
   2  Text_Diff: PEAR Bug #12740 (failed assertion)
   3  --FILE--
   4  <?php
   5  
   6  require dirname(__FILE__) . '/../Diff.php';
   7  require dirname(__FILE__) . '/../Diff/Renderer/inline.php';
   8  
   9  $a = <<<QQ
  10  <li>The tax credit amounts to 30% of the cost of the system, with a
  11  maximum of 2,000. This credit is separate from the 500 home improvement
  12  credit.</li>
  13  <h3>Fuel Cells<a
  14  href="12341234213421341234123412341234123421341234213412342134213423"
  15  class="anchor" title="Link to this section"><br />
  16  <li>Your fuel 123456789</li>
  17  QQ;
  18  
  19  $b = <<<QQ
  20  <li> of gas emissions by 2050</li>
  21  <li>Raise car fuel economy to 50 mpg by 2017</li>
  22  <li>Increase access to mass transit systems</li>
  23  QQ;
  24  
  25  $diff = new Text_Diff('native', array(explode("\n", $b), explode("\n", $a)));
  26  $renderer = new Text_Diff_Renderer_inline();
  27  $renderer->render($diff);
  28  
  29  ?>
  30  --EXPECT--

title

Description

title

Description

title

Description

title

title

Body