Merge "Add @covers tags for more tests"
[lhc/web/wiklou.git] / tests / phpunit / includes / libs / DeferredStringifierTest.php
index 5e1970b..19dc53c 100644 (file)
@@ -1,9 +1,13 @@
 <?php
 
+/**
+ * @covers DeferredStringifier
+ */
 class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
 
+       use MediaWikiCoversValidator;
+
        /**
-        * @covers DeferredStringifier
         * @dataProvider provideToString
         */
        public function testToString( $params, $expected ) {
@@ -17,7 +21,7 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
                        // No args
                        [
                                [
-                                       function() {
+                                       function () {
                                                return 'foo';
                                        }
                                ],
@@ -26,7 +30,7 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
                        // Has args
                        [
                                [
-                                       function( $i ) {
+                                       function ( $i ) {
                                                return $i;
                                        },
                                        'bar'
@@ -41,7 +45,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