Merge "Added a separate error message for mkdir failures"
[lhc/web/wiklou.git] / tests / phpunit / includes / libs / DeferredStringifierTest.php
index 9aaf113..cba2939 100644 (file)
@@ -13,16 +13,27 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase {
        }
 
        public static function provideToString() {
-               return array(
+               return [
                        // No args
-                       array( array( function() {
-                               return 'foo';
-                       } ), 'foo' ),
+                       [
+                               [
+                                       function () {
+                                               return 'foo';
+                                       }
+                               ],
+                               'foo'
+                       ],
                        // Has args
-                       array( array( function( $i ) {
-                               return $i;
-                       }, 'bar' ), 'bar' ),
-               );
+                       [
+                               [
+                                       function ( $i ) {
+                                               return $i;
+                                       },
+                                       'bar'
+                               ],
+                               'bar'
+                       ],
+               ];
        }
 
        /**
@@ -30,7 +41,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