Skip to content

Commit 0c981e7

Browse files
committed
Fix Docker entrypoint passthrough test
When updating to PHP 8.3 (or Symfony 7.2) the prefix output of `bin/console` changed to `)Symfony` instead of `(Symfony`. For some reason this extra character only appears in this test as far as I'm aware. Simplified with a basic echo command to make the test more consistent.
1 parent ee5639d commit 0c981e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Docker/Standalone/EntrypointTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ public function testDirigent(): void
4545
public function testPassthrough(): void
4646
{
4747
$container = (new GenericContainer('dirigent-standalone'))
48-
->withCommand(['--', 'bin/console', 'list'])
49-
->withWait(new WaitForLog('Symfony'))
48+
->withCommand(['--', 'echo', 'i have a dream'])
49+
->withWait(new WaitForLog('dream'))
5050
->start();
5151

5252
$result = $container->logs();
5353

5454
$container->stop();
5555

56-
$this->assertStringStartsWith(')Symfony', $result, 'Running the container with an `--` argument must have its remaining arguments be interpreted as a command.');
56+
$this->assertSame('i have a dream', $result, 'Running the container with an `--` argument must have its remaining arguments be interpreted as a command.');
5757
}
5858
}

0 commit comments

Comments
 (0)