Skip to content

Commit

Permalink
fis CS
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab committed Apr 16, 2021
1 parent d107a1f commit d3f420d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Console/Command/ListFilesCommand.php
Expand Up @@ -16,11 +16,11 @@
use PhpCsFixer\ConfigInterface;
use PhpCsFixer\Console\ConfigurationResolver;
use PhpCsFixer\ToolInfoInterface;
use SplFileInfo;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use SplFileInfo;

/**
* @author Markus Staab <markus.staab@redaxo.org>
Expand Down
6 changes: 3 additions & 3 deletions tests/Console/Command/ListFilesCommandTest.php
Expand Up @@ -28,14 +28,14 @@ final class ListFilesCommandTest extends TestCase
public function testListWithConfig()
{
$commandTester = $this->doTestExecute([
'--config' => __DIR__ . '/../../Fixtures/ListFilesTest/.php-cs-fixer.php'
'--config' => __DIR__.'/../../Fixtures/ListFilesTest/.php-cs-fixer.php',
]);

$expectedPath = './tests/Fixtures/ListFilesTest/needs-fixing/needs-fixing.php';
// make the test also work on windows
$expectedPath = str_replace('/', DIRECTORY_SEPARATOR, $expectedPath);
$expectedPath = str_replace('/', \DIRECTORY_SEPARATOR, $expectedPath);

$this->assertSame(escapeshellarg($expectedPath).PHP_EOL, $commandTester->getDisplay());
static::assertSame(escapeshellarg($expectedPath).PHP_EOL, $commandTester->getDisplay());
}

/**
Expand Down

0 comments on commit d3f420d

Please sign in to comment.