Skip to content

Commit

Permalink
Rename RemoveHTMLFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
iquito committed Jul 10, 2019
1 parent 18a1562 commit 4cd67c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Remove HTML tags
*/
class RemoveHTMLFilter implements StringFilterInterface
class RemoveHTMLTagsFilter implements StringFilterInterface
{
public function filter(string $string): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/StringFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Squirrel\Strings\Filter\LowercaseFilter;
use Squirrel\Strings\Filter\NormalizeLettersToAsciiFilter;
use Squirrel\Strings\Filter\RemoveExcessSpacesFilter;
use Squirrel\Strings\Filter\RemoveHTMLFilter;
use Squirrel\Strings\Filter\RemoveHTMLTagsFilter;
use Squirrel\Strings\Filter\RemoveNonAlphanumericFilter;
use Squirrel\Strings\Filter\RemoveNonAsciiAndControlCharactersFilter;
use Squirrel\Strings\Filter\RemoveNonNumericFilter;
Expand Down Expand Up @@ -69,7 +69,7 @@ public function testRemoveExcessSpaces()

public function testRemoveHTML()
{
$this->assertEquals(" & haha many \xc2\xa0   grüss götter \r\n\n\n\t \n \n \"l'etat\"\\ thing contained!!!™ ", (new RemoveHTMLFilter())->filter($this->testString));
$this->assertEquals(" & haha many \xc2\xa0   grüss götter \r\n\n\n\t \n \n \"l'etat\"\\ thing contained!!!™ ", (new RemoveHTMLTagsFilter())->filter($this->testString));
}

public function testReplaceNewlinesWithSpaces()
Expand Down

0 comments on commit 4cd67c6

Please sign in to comment.