Skip to content

Commit d7d8998

Browse files
Merge branch '4.4' into 5.1
* 4.4: Use createMock() and use import instead of FQCN
2 parents a3ef378 + 7f50c27 commit d7d8998

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Tests/Header/MailboxHeaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Mime\Address;
16+
use Symfony\Component\Mime\Exception\AddressEncoderException;
1617
use Symfony\Component\Mime\Header\MailboxHeader;
1718

1819
class MailboxHeaderTest extends TestCase
@@ -60,7 +61,7 @@ public function testgetBodyAsString()
6061

6162
public function testUtf8CharsInLocalPartThrows()
6263
{
63-
$this->expectException(\Symfony\Component\Mime\Exception\AddressEncoderException::class);
64+
$this->expectException(AddressEncoderException::class);
6465
$header = new MailboxHeader('Sender', new Address('fabï[email protected]'));
6566
$header->getBodyAsString();
6667
}

Tests/Header/MailboxListHeaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Mime\Address;
16+
use Symfony\Component\Mime\Exception\AddressEncoderException;
1617
use Symfony\Component\Mime\Header\MailboxListHeader;
1718

1819
class MailboxListHeaderTest extends TestCase
@@ -57,7 +58,7 @@ public function testUtf8CharsInDomainAreIdnEncoded()
5758

5859
public function testUtf8CharsInLocalPartThrows()
5960
{
60-
$this->expectException(\Symfony\Component\Mime\Exception\AddressEncoderException::class);
61+
$this->expectException(AddressEncoderException::class);
6162
$header = new MailboxListHeader('From', [new Address('chrï[email protected]', 'Chris Corbyn')]);
6263
$header->getAddressStrings();
6364
}

Tests/Header/PathHeaderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Mime\Address;
16+
use Symfony\Component\Mime\Exception\AddressEncoderException;
1617
use Symfony\Component\Mime\Header\PathHeader;
1718

1819
class PathHeaderTest extends TestCase
@@ -51,7 +52,7 @@ public function testAddressIsIdnEncoded()
5152

5253
public function testAddressMustBeEncodable()
5354
{
54-
$this->expectException(\Symfony\Component\Mime\Exception\AddressEncoderException::class);
55+
$this->expectException(AddressEncoderException::class);
5556
$header = new PathHeader('Return-Path', new Address('chrï[email protected]'));
5657
$header->getBodyAsString();
5758
}

0 commit comments

Comments
 (0)