Merge "Chinese Conversion Table Update 2017-6"
[lhc/web/wiklou.git] / tests / phpunit / includes / libs / DeferredStringifierTest.php
index 5e1970b..c3a1285 100644 (file)
@@ -2,6 +2,8 @@
 
 class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
 
+       use MediaWikiCoversValidator;
+
        /**
         * @covers DeferredStringifier
         * @dataProvider provideToString
@@ -17,7 +19,7 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
                        // No args
                        [
                                [
-                                       function() {
+                                       function () {
                                                return 'foo';
                                        }
                                ],
@@ -26,7 +28,7 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
                        // Has args
                        [
                                [
-                                       function( $i ) {
+                                       function ( $i ) {
                                                return $i;
                                        },
                                        'bar'
@@ -41,7 +43,7 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
         * it is never converted to a string
         */
        public function testCallbackNotCalled() {
-               $ds = new DeferredStringifier( function() {
+               $ds = new DeferredStringifier( function () {
                        throw new Exception( 'This should not be reached!' );
                } );
                // No exception was thrown