public function testProtectedTags() { $fixer = new Fixer(array('Ellipsis')); $fixer->setProtectedTags(array('pre', 'a')); $fixed_content = $fixer->fix('<p>Fixed...</p> <pre>Not fixed...</pre> <p>Fixed... <a>Not Fixed...</a>.</p>'); $this->assertEquals('<p>Fixed…</p> <pre>Not fixed...</pre> <p>Fixed… <a>Not Fixed...</a>.</p>', $fixed_content); }