Skip to content

Commit 32cce9f

Browse files
minor symfony#40836 [Mailer] Fix SocketStreamTest for windows (a1812)
This PR was merged into the 4.4 branch. Discussion ---------- [Mailer] Fix SocketStreamTest for windows | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? |no | Tickets | - | License | MIT | Doc PR | - **How to reproduce** PHP 8.0.3 PHPUnit 9.5.4 c:\php\php ./phpunit --bootstrap ./vendor/autoload.php --configuration ./phpunit.xml.dist --filter "/(SocketStreamTest::testSocketErrorNoConnection)( .*)?$/" --test-suffix SocketStreamTest.php ./src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream --testdox Failed asserting that exception message 'Connection could not be established with host "ssl://localhost:9999": stream_socket_client(): Unable to connect to ssl://localhost:9999 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)' matches '/Connection refused|unable to connect/'. Commits ------- a46fce4 fix test SocketStreamTest for Windows
2 parents 3a021a7 + a46fce4 commit 32cce9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Tests/Transport/Smtp/Stream/SocketStreamTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SocketStreamTest extends TestCase
2020
public function testSocketErrorNoConnection()
2121
{
2222
$this->expectException(TransportException::class);
23-
$this->expectExceptionMessageMatches('/Connection refused|unable to connect/');
23+
$this->expectExceptionMessageMatches('/Connection refused|unable to connect/i');
2424
$s = new SocketStream();
2525
$s->setTimeout(0.1);
2626
$s->setPort(9999);

0 commit comments

Comments
 (0)