We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e54a18 commit a60876bCopy full SHA for a60876b
bin/view-csv
@@ -33,7 +33,7 @@ $command = (new SingleCommandApplication())
33
$headers = $csvFileHandler->extractHeader($csvFile);
34
35
if (!$headers) {
36
- $io->error('could not extract headers');
+ $io->error('invalid csv file');
37
return Command::FAILURE;
38
}
39
tests/Integration/ViewCsvCommandTest.php
@@ -68,6 +68,9 @@ public function throwExceptionIfFileIsInvalid(string $file): void
68
{
69
$command = "php bin/view-csv {$file}";
70
exec($command, $output, $exitCode);
71
+ $actualOutput = implode("\n", $output);
72
+
73
+ $this->assertStringContainsString('invalid csv file', $actualOutput);
74
$this->assertSame(1, $exitCode);
75
unlink($file);
76
0 commit comments