Ejemplo n.º 1
0
 /**
  * Strips empty tags from HTML.
  *
  * @test
  * @dataProvider stripEmptyTagsDataProvider
  * @param string $content The content to be stripped of empty tags
  * @param string $tagList The comma separated list of tags to be stripped.
  *                        If empty, all empty tags will be stripped
  * @param bool $treatNonBreakingSpaceAsEmpty If TRUE tags containing only   entities will be treated as empty.
  * @param string $expectedResult
  */
 public function rawStripEmptyTagsTest($content, $tagList, $treatNonBreakingSpaceAsEmpty, $expectedResult)
 {
     $this->assertEquals($expectedResult, $this->subject->stripEmptyTags($content, $tagList, $treatNonBreakingSpaceAsEmpty));
 }