Merge "Provide direction hinting in the personal toolbar"
[lhc/web/wiklou.git] / tests / phpunit / includes / HtmlFormatterTest.php
index a37df74..99a6efd 100644 (file)
@@ -6,6 +6,7 @@
 class HtmlFormatterTest extends MediaWikiTestCase {
        /**
         * @dataProvider getHtmlData
+        * @covers HtmlFormatter::getText
         */
        public function testTransform( $input, $expected, $callback = false ) {
                $input = self::normalize( $input );
@@ -15,6 +16,8 @@ class HtmlFormatterTest extends MediaWikiTestCase {
                }
                $formatter->filterContent();
                $html = $formatter->getText();
+
+               $this->assertValidHtmlSnippet( $html );
                $this->assertEquals( self::normalize( $expected ), self::normalize( $html ) );
        }