Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 350cfd5

Browse filesBrowse files
committed
Revert "wip"
This reverts commit 08c9f21.
1 parent 08c9f21 commit 350cfd5
Copy full SHA for 350cfd5

File tree

Expand file treeCollapse file tree

1 file changed

+0
-25
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-25
lines changed

‎src/Symfony/Component/Mailer/Tests/Transport/Smtp/EsmtpTransportTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Tests/Transport/Smtp/EsmtpTransportTest.php
-25Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
namespace Symfony\Component\Mailer\Tests\Transport\Smtp;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Component\Mailer\Exception\TransportException;
1615
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
17-
use Symfony\Component\Mime\Email;
1816

1917
class EsmtpTransportTest extends TestCase
2018
{
@@ -42,27 +40,4 @@ public function testToString()
4240
$t = new EsmtpTransport('example.com', 466, true);
4341
$this->assertEquals('smtps://example.com:466', (string) $t);
4442
}
45-
46-
public function testTypeErrorInMailer()
47-
{
48-
$transport = new EsmtpTransport(
49-
'smtp.mailtrap.io',
50-
587,
51-
null
52-
);
53-
$transport->setUsername('foo');
54-
$transport->setPassword('bar');
55-
56-
$message = new Email();
57-
$message->from('sender@example.org');
58-
$message->addTo('recipient@example.org');
59-
$message->text('.');
60-
61-
try {
62-
$transport->send($message);
63-
$this->fail('Symfony\Component\Mailer\Exception\TransportException to be thrown');
64-
} catch (TransportException $e) {
65-
$this->assertStringStartsWith('Failed to authenticate on SMTP server with username "foo" using the following authenticators: "CRAM-MD5", "LOGIN", "PLAIN".', $e->getMessage());
66-
}
67-
}
6843
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.