Remove unused method parameters from TestBagOStuff
[lhc/web/wiklou.git] / tests / phpunit / includes / libs / XmlTypeCheckTest.php
index 7f9a772..8a11d87 100644 (file)
@@ -6,11 +6,13 @@
  * @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
+       // phpcs:ignore Generic.Files.LineLength
        const XML_WITH_PIH = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/w/index.php"?><svg><child /></svg>';
-       // @codingStandardsIgnoreEnd
 
        /**
         * @covers XMLTypeCheck::newFromString
@@ -66,7 +68,7 @@ XML;
                        null,
                        false,
                        [
-                               'processing_instruction_handler' => function() use ( &$called ) {
+                               'processing_instruction_handler' => function () use ( &$called ) {
                                        $called = true;
                                }
                        ]