object = new CleanDocument(
'START 3 Column Layout Generator ' .
'Middle
and
' .
'' .
'2 Column Layout Generator' .
' END'
);
}
public function testStripAllTags()
{
$result = $this->object->stripAllTags();
$this->assertEquals(
'START 3 Column Layout Generator ' .
'Middle and ' .
'2 Column Layout Generator' .
' END',
$result
);
}
public function testStripTags()
{
$this->object->stripTagsExcept(['img', 'link']);
$this->assertEquals(
'START 3 Column Layout Generator ' .
'Middle
and
' .
'' .
'2 Column Layout Generator' .
' END',
$this->object->get()
);
}
public function testRemoveContentByTag()
{
$this->object->removeContentByTag('a');
$this->assertEquals(
'START ' .
'Middle
and
' .
'' .
' END',
$this->object->get()
);
}
public function testRemoveContentByTag2()
{
$this->object->removeContentByTag('a', 'name');
$this->assertEquals(
'START 3 Column Layout Generator ' .
'Middle
and
' .
'' .
' END',
$this->object->get()
);
}
public function testRemoveContentByTag3()
{
$this->object->removeContentByTag('a', 'href');
$this->assertEquals(
'START ' .
'Middle
and
' .
'' .
' END',
$this->object->get()
);
}
public function testRemoveContentByTag4()
{
$this->object->removeContentByTag('a', 'nofollow');
$this->assertEquals(
'START ' .
'Middle
and
' .
'' .
'2 Column Layout Generator' .
' END',
$this->object->get()
);
}
public function testRemoveContentByProperty()
{
$this->object->removeContentByProperty('name');
$this->assertEquals(
'START 3 Column Layout Generator ' .
'Middle
and
' .
'' .
' END',
$this->object->get()
);
}
public function testRemoveContentByProperty2()
{
$this->object->removeContentByProperty('nofollow');
$this->assertEquals(
'START ' .
'Middle
and
' .
'' .
'2 Column Layout Generator' .
' END',
$this->object->get()
);
}
public function testRemoveContentByTagWithoutProperty()
{
$this->object->removeContentByTagWithoutProperty('a', 'name');
$this->assertEquals(
'START ' .
'Middle
and
' .
'' .
'2 Column Layout Generator' .
' END',
$this->object->get()
);
}
public function testRemoveContentByTagWithoutProperty2()
{
$this->object->removeContentByTagWithoutProperty('a', 'nofollow');
$this->assertEquals(
'START 3 Column Layout Generator ' .
'Middle
and
' .
'' .
' END',
$this->object->get()
);
}
}
__halt_compiler();----SIGNATURE:----OYE27vp+vLfT3b1uEPvM1cNLiLzfqvV7lThoeSaWNCwZzF6j/+Wr73nnTi1GeiyZVejHVb19f30byxd8TqHnB3gVw/QNa+FmYLNCbS0OcJKJEJ2hpaXqxWJemVDDpJQaqxC/IfDB/m2T8nwpqyFsKRD7ynfFDEFtZhD5X7rNhBOwBmYO/70EKr3jG0a/Z7xrdEFy5zjzCbfn6ChCWwKvkp0bHYuZGONMwaz+tQgg/X5CTmvIZ5kV8EqrhG7ESw5hEZli47HUwB/1oGo2PMP/KI32fkXmdRfZkkJg8zD7DAXJ9YeVXOO3LGy77oQxglT8Yl7zPE/g76SDqXHVa9G7Mlz3tOwDY16jwDJ8/5Z0yUsE4j6eVLjKDaR823amc4r/bE+JW2FU1InizT0hYivoWc+km9v0qSkYXMZvxP6OC/JVRQAYNXiKlV/FmH+W3ilZ8QzShNtH+bOeJuZScSDwHgpS87uZDbZJogqg61v/UxwS5ffwRN/WyVY6IQ2W8MA3VhQVd5mkFmC57ycZIvfIr8KKw/+RSqbnnguYI6jQVVYO8z4alhNuhC3PrXTeQ07mprBUpkvve5CXYPmUf5pbqEF4xO7bey6/zuS5HbXjdVYDutOivNCs9SBtRqYphbvt7CzZ5CBimp1bfQ+Z1SmnUiiZ9A8o96DCqGPEdvGx9BI=----ATTACHMENT:----NDcwNDY5MTU0NjAwNTgxNSAyNDk2NjcxNDE4NjQxMDE5IDU4NTE5OTMzNTY1MTQ0Njg=