SECURITY: blacklist CSS var()
[lhc/web/wiklou.git] / tests / phpunit / includes / HtmlTest.php
index 5410644..999e0bb 100644 (file)
@@ -76,6 +76,15 @@ class HtmlTest extends MediaWikiTestCase {
                parent::tearDown();
        }
 
+       /**
+        * @expectedException PHPUnit_Framework_Error_Notice
+        * @expectedExceptionMessage given element name with space
+        * @covers Html::openElement
+        */
+       public function testOpenElement() {
+               Html::openElement( 'span id="x"' );
+       }
+
        /**
         * @covers Html::element
         * @covers Html::rawElement
@@ -203,7 +212,6 @@ class HtmlTest extends MediaWikiTestCase {
        }
 
        /**
-        * Test for Html::expandAttributes()
         * Please note it output a string prefixed with a space!
         * @covers Html::expandAttributes
         */