diff options
Diffstat (limited to 'vendor/fguillot/picofeed/tests/Filter/TagFilterTest.php')
-rw-r--r-- | vendor/fguillot/picofeed/tests/Filter/TagFilterTest.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/vendor/fguillot/picofeed/tests/Filter/TagFilterTest.php b/vendor/fguillot/picofeed/tests/Filter/TagFilterTest.php deleted file mode 100644 index 86911bbb4..000000000 --- a/vendor/fguillot/picofeed/tests/Filter/TagFilterTest.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -namespace PicoFeed\Filter; - -use PHPUnit_Framework_TestCase; - - -class TagFilterTest extends PHPUnit_Framework_TestCase -{ - public function testAllowedTag() - { - $tag = new Tag; - - $this->assertTrue($tag->isAllowed('p', array('class' => 'test'))); - $this->assertTrue($tag->isAllowed('img', array('class' => 'test'))); - - $this->assertFalse($tag->isAllowed('script', array('class' => 'test'))); - $this->assertFalse($tag->isAllowed('img', array('width' => '1', 'height' => '1'))); - } - - public function testHtml() - { - $tag = new Tag; - - $this->assertEquals('<p>', $tag->openHtmlTag('p')); - $this->assertEquals('<img src="test" alt="truc"/>', $tag->openHtmlTag('img', 'src="test" alt="truc"')); - $this->assertEquals('<img/>', $tag->openHtmlTag('img')); - $this->assertEquals('<br/>', $tag->openHtmlTag('br')); - - $this->assertEquals('</p>', $tag->closeHtmlTag('p')); - $this->assertEquals('', $tag->closeHtmlTag('img')); - $this->assertEquals('', $tag->closeHtmlTag('br')); - } -} |