Skip to content

Commit 9fe510f

Browse files
committed
fix: failing test on latest version of symfony in php 8.4
1 parent cd2db86 commit 9fe510f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/cli/tests/Flow/CLI/Tests/Integration/FileAnalyzeCommandTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77
use Flow\CLI\Command\{FileAnalyzeCommand};
88
use Flow\ETL\Tests\CommandOutputNormalizer;
99
use Flow\ETL\Tests\FlowTestCase;
10-
use Symfony\Component\Console\Application;
1110
use Symfony\Component\Console\Tester\CommandTester;
1211

1312
final class FileAnalyzeCommandTest extends FlowTestCase
1413
{
1514
use CommandOutputNormalizer;
1615
public function test_read_rows_csv() : void
1716
{
18-
$application = new Application();
19-
$application->add(new FileAnalyzeCommand());
20-
$tester = new CommandTester($application->get('file:analyze'));
17+
$tester = new CommandTester(new FileAnalyzeCommand('file:analyze'));
2118

2219
$tester->execute(['input-file' => __DIR__ . '/Fixtures/orders.csv', '--input-file-limit' => 5, '--stats-schema' => true, '--stats-columns' => true, '--schema-auto-cast' => true]);
2320

@@ -72,9 +69,7 @@ public function test_read_rows_csv() : void
7269

7370
public function test_read_rows_csv_without_schema() : void
7471
{
75-
$application = new Application();
76-
$application->add(new FileAnalyzeCommand());
77-
$tester = new CommandTester($application->get('file:analyze'));
72+
$tester = new CommandTester(new FileAnalyzeCommand('file:analyze'));
7873

7974
$tester->execute(['input-file' => __DIR__ . '/Fixtures/orders.csv', '--input-file-limit' => 5, '--stats-columns' => true, '--schema-auto-cast' => true]);
8075

0 commit comments

Comments
 (0)