X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2Fformat%2FApiFormatRawTest.php;h=f64af6d3a8e15c0fc0ac04191b7ac8452880f651;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hp=0d3e63f98a9a1c197204aa1f88531d2eb83f3913;hpb=bdf062a8e9f351d3b94f99f2cbe9f7176f0b8801;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/format/ApiFormatRawTest.php b/tests/phpunit/includes/api/format/ApiFormatRawTest.php index 0d3e63f98a..f64af6d3a8 100644 --- a/tests/phpunit/includes/api/format/ApiFormatRawTest.php +++ b/tests/phpunit/includes/api/format/ApiFormatRawTest.php @@ -14,7 +14,7 @@ class ApiFormatRawTest extends ApiFormatTestBase { */ public static function provideGeneralEncoding() { $options = [ - 'class' => 'ApiFormatRaw', + 'class' => ApiFormatRaw::class, 'factory' => function ( ApiMain $main ) { return new ApiFormatRaw( $main, new ApiFormatJson( $main, 'json' ) ); } @@ -105,7 +105,7 @@ class ApiFormatRawTest extends ApiFormatTestBase { '{"mime":"text/plain","text":"some text","error":"some error"}', [], [ - 'class' => 'ApiFormatRaw', + 'class' => ApiFormatRaw::class, 'factory' => function ( ApiMain $main ) use ( &$apiMain ) { $apiMain = $main; $printer = new ApiFormatRaw( $main, new ApiFormatJson( $main, 'json' ) );