Skip to content

Commit

Permalink
Update tests/Console/ConfigurationResolverTest.php
Browse files Browse the repository at this point in the history
Reuse path stored in variable instead concatenating the same values again.

Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>
  • Loading branch information
Wirone and keradus committed May 5, 2023
1 parent ff81ff4 commit 911b9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Console/ConfigurationResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function testResolveConfigFileChooseFileWithPathArrayAndConfig(): void

$resolver = $this->createConfigurationResolver([
'config' => $configFile,
'path' => [$dirBase.'case_1/.php-cs-fixer.dist.php', $dirBase.'case_1/foo.php'],
'path' => [$configFile, $dirBase.'case_1/foo.php'],
]);

self::assertSame($configFile, $resolver->getConfigFile());
Expand Down

0 comments on commit 911b9c8

Please sign in to comment.