Skip to content

Commit

Permalink
more details
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Nov 1, 2023
1 parent cfb39a3 commit 3850b42
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions fixtures/set035-composer-files-autoload/test.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
<?php declare(strict_types=1);

$output = file_get_contents(__DIR__.'/output');
$output = implode(
"\n",
array_filter(
array_map(
trim(...),
explode(PHP_EOL, file_get_contents(__DIR__.'/output')),
),
static fn (string $line) => '' !== $line,
),
);

$expectedOutput = <<<'EOF'
Autoload Scoped code.
5.3.4.0
Guzzle5 loaded.Autoload code.
6.5.8.0
Done.

EOF;

if ($output !== $expectedOutput) {
echo 'FAILED!' . PHP_EOL;
echo 'Expected:' . PHP_EOL;
echo '–––––––' . PHP_EOL;
echo $expectedOutput. PHP_EOL;
echo '–––––––' . PHP_EOL;
echo 'Actual:' . PHP_EOL;
echo '–––––––' . PHP_EOL;
echo $output. PHP_EOL;
echo '–––––––' . PHP_EOL;
echo $output;
echo PHP_EOL;

exit(1);
}
Expand Down

0 comments on commit 3850b42

Please sign in to comment.