1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 09:02:59 +00:00

Upgrade php-cs-fixer to 3.x and fix CS

This commit is contained in:
Jordi Boggiano 2021-10-27 16:18:24 +02:00
parent c65d09dff7
commit 44b69ba77f
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
30 changed files with 87 additions and 79 deletions

View file

@ -66,7 +66,7 @@ class VersionGuesserTest extends TestCase
$process->expects(array(
array(
'cmd' => 'git branch -a --no-color --no-abbrev -v',
'stdout' => "* master $commitHash Commit message\n(no branch) $anotherCommitHash Commit message\n"
'stdout' => "* master $commitHash Commit message\n(no branch) $anotherCommitHash Commit message\n",
),
), true);
@ -94,7 +94,7 @@ class VersionGuesserTest extends TestCase
array(
'cmd' => 'git branch -a --no-color --no-abbrev -v',
// Assumption here is that arbitrary would be the default branch
'stdout' => " arbitrary $commitHash Commit message\n* current $anotherCommitHash Another message\n"
'stdout' => " arbitrary $commitHash Commit message\n* current $anotherCommitHash Another message\n",
),
), true);
@ -118,11 +118,11 @@ class VersionGuesserTest extends TestCase
$process->expects(array(
array(
'cmd' => 'git branch -a --no-color --no-abbrev -v',
'stdout' => " arbitrary $commitHash Commit message\n* feature $anotherCommitHash Another message\n"
'stdout' => " arbitrary $commitHash Commit message\n* feature $anotherCommitHash Another message\n",
),
array(
'cmd' => 'git rev-list arbitrary..feature',
'stdout' => "$anotherCommitHash\n"
'stdout' => "$anotherCommitHash\n",
),
), true);
@ -245,7 +245,6 @@ class VersionGuesserTest extends TestCase
{
$commitHash = '03a15d220da53c52eddd5f32ffca64a7b3801bea';
$process = new ProcessExecutorMock;
$process->expects(array(
array(