Skip to content

Commit

Permalink
Add test for #13
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Oct 18, 2014
1 parent 49d7f01 commit fc95895
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/HtmlCharsTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Html2Text;

class HtmlCharsTest extends \PHPUnit_Framework_TestCase
{
public function testLaquoAndRaquo()
{
$html = 'This library name is &laquo;Html2Text&raquo;';
$expected = 'This library name is «Html2Text»';

$html2text = new Html2Text($html);
$this->assertEquals($expected, $html2text->getText());
}
}

0 comments on commit fc95895

Please sign in to comment.