minor #32228 [Mailer] fix tests on Windows (fabpot)

This PR was merged into the 4.3 branch.

Discussion
----------

[Mailer] fix tests on Windows

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

<!--
Replace this notice by a short README for your feature/bugfix. This will help people
understand your PR and can be used as a start for the documentation.

Additionally (see https://symfony.com/roadmap):
 - Bug fixes must be submitted against the lowest maintained branch where they apply
   (lowest branches are regularly merged to upper ones so they get the fixes too).
 - Features and deprecations must be submitted against branch 4.4.
 - Legacy code removals go to the master branch.
-->

Commits
-------

90f61e9efa [Mailer] fixed tests on Windows
This commit is contained in:
Fabien Potencier 2019-06-27 18:47:10 +02:00
commit 00e13677ba
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class SocketStreamTest extends TestCase
{
/**
* @expectedException \Symfony\Component\Mailer\Exception\TransportException
* @expectedExceptionMessage Connection refused
* @expectedExceptionMessageRegExp /Connection refused|unable to connect/
*/
public function testSocketErrorNoConnection()
{
@ -30,7 +30,7 @@ class SocketStreamTest extends TestCase
/**
* @expectedException \Symfony\Component\Mailer\Exception\TransportException
* @expectedExceptionMessage no valid certs found cafile stream
* @expectedExceptionMessageRegExp /no valid certs found cafile stream|Unable to find the socket transport "ssl"/
*/
public function testSocketErrorBeforeConnectError()
{