テストメソッドが日本語の場合、適用しているルールによっては文字化けする場合があります。
php_unit_method_casing
のルールの影響っぽい
設定でphp_unit_method_casing
をfalseにするとよい。
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('bootstrap/cache')
->notPath('server.php')
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@PhpCsFixer' => true,
'php_unit_method_casing' => false, ## 追加
])
->setFinder($finder)
;