summaryrefslogtreecommitdiff
path: root/test/HTML5/ElementsTest.php
diff options
context:
space:
mode:
authorTechnosophos <[email protected]>2013-04-24 16:17:32 -0500
committerTechnosophos <[email protected]>2013-04-24 16:17:32 -0500
commitdebc724a1e4048a9ec42c44c31e61542cbd52701 (patch)
tree007c1d74e77c3a62b0727f5fb1e4ee6363e12808 /test/HTML5/ElementsTest.php
parent908039dbc19decf0f897867b1add614acbcf9352 (diff)
Added negative test to unit tests.
Diffstat (limited to 'test/HTML5/ElementsTest.php')
-rw-r--r--test/HTML5/ElementsTest.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/HTML5/ElementsTest.php b/test/HTML5/ElementsTest.php
index 7fe6af8..69d0675 100644
--- a/test/HTML5/ElementsTest.php
+++ b/test/HTML5/ElementsTest.php
@@ -334,6 +334,7 @@ class ElementsTest extends TestCase {
public function testIsA() {
$this->assertTrue(Elements::isA('script', Elements::KNOWN_ELEMENT));
+ $this->assertFalse(Elements::isA('scriptypoo', Elements::KNOWN_ELEMENT));
$this->assertTrue(Elements::isA('script', Elements::TEXT_RAW));
$this->assertFalse(Elements::isA('script', Elements::TEXT_RCDATA));
}