X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Flibs%2FDeferredStringifierTest.php;h=cba293926eb48c3bc860f48cfb5752f7a5afa3db;hb=64b83bdb3afd0ee4f8fc1893a865409c198e601e;hp=8b7610ae7b76caebd7ddc350009d426086bff83f;hpb=96a8ab6928b3e0be884c33eed8a1febf6fc4c31e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/libs/DeferredStringifierTest.php b/tests/phpunit/includes/libs/DeferredStringifierTest.php index 8b7610ae7b..cba293926e 100644 --- a/tests/phpunit/includes/libs/DeferredStringifierTest.php +++ b/tests/phpunit/includes/libs/DeferredStringifierTest.php @@ -13,27 +13,27 @@ class DeferredStringifierTest extends PHPUnit_Framework_TestCase { } public static function provideToString() { - return array( + return [ // No args - array( - array( - function() { + [ + [ + function () { return 'foo'; } - ), + ], 'foo' - ), + ], // Has args - array( - array( - function( $i ) { + [ + [ + function ( $i ) { return $i; }, 'bar' - ), + ], 'bar' - ), - ); + ], + ]; } /** @@ -41,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