Merge "Mark protected IndexPager properties also as protected in subclasses"
[lhc/web/wiklou.git] / tests / phpunit / includes / HtmlTest.php
index 5410644..1d687e5 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