Use MediaWikiCoversValidator for tests that don't use MediaWikiTestCase
[lhc/web/wiklou.git] / tests / phpunit / includes / libs / XmlTypeCheckTest.php
index 7f9a772..97aeec3 100644 (file)
@@ -6,6 +6,9 @@
  * @covers XMLTypeCheck
  */
 class XmlTypeCheckTest extends PHPUnit_Framework_TestCase {
+
+       use MediaWikiCoversValidator;
+
        const WELL_FORMED_XML = "<root><child /></root>";
        const MAL_FORMED_XML = "<root><child /></error>";
        // @codingStandardsIgnoreStart Generic.Files.LineLength
@@ -66,7 +69,7 @@ XML;
                        null,
                        false,
                        [
-                               'processing_instruction_handler' => function() use ( &$called ) {
+                               'processing_instruction_handler' => function () use ( &$called ) {
                                        $called = true;
                                }
                        ]