minor #25556 PHP CS Fixer: use PHPUnit Migration ruleset (keradus)

This PR was squashed before being merged into the 2.7 branch (closes #25556).

Discussion
----------

PHP CS Fixer: use PHPUnit Migration ruleset

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | not related
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

replaces #25553

Commits
-------

a5bc7d6 PHP CS Fixer: use PHPUnit Migration ruleset
This commit is contained in:
Nicolas Grekas 2017-12-22 23:38:09 +01:00
commit 8f6041819f
1 changed files with 2 additions and 1 deletions

View File

@ -8,9 +8,10 @@ return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit48Migration:risky' => true,
'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice
'array_syntax' => array('syntax' => 'long'),
'protected_to_private' => false,
'php_unit_dedicate_assert' => array('target' => '3.5'),
))
->setRiskyAllowed(true)
->setFinder(