public function testRemoveEmptyTable() { $f = new Html('<table><tr><td> </td></tr></table>', 'http://blabla'); $this->assertEquals('', $f->execute()); $f = new Html('<table><tr></tr></table>', 'http://blabla'); $this->assertEquals('', $f->execute()); }
public function testRemoveMultipleTags() { $f = new Html('<br/><br/><p>toto</p><br/><br/><br/><p>momo</p><br/><br/><br/><br/>', 'http://blabla'); $this->assertEquals('<br/><p>toto</p><br/><p>momo</p><br/>', $f->execute()); }