File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Mime \Address ;
16
+ use Symfony \Component \Mime \Exception \AddressEncoderException ;
16
17
use Symfony \Component \Mime \Header \MailboxHeader ;
17
18
18
19
class MailboxHeaderTest extends TestCase
@@ -60,7 +61,7 @@ public function testgetBodyAsString()
60
61
61
62
public function testUtf8CharsInLocalPartThrows ()
62
63
{
63
- $ this ->expectException (\ Symfony \ Component \ Mime \ Exception \ AddressEncoderException::class);
64
+ $ this ->expectException (AddressEncoderException::class);
64
65
$ header =
new MailboxHeader (
'Sender ' ,
new Address (
'fabï[email protected] ' ));
65
66
$ header ->getBodyAsString ();
66
67
}
Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Mime \Address ;
16
+ use Symfony \Component \Mime \Exception \AddressEncoderException ;
16
17
use Symfony \Component \Mime \Header \MailboxListHeader ;
17
18
18
19
class MailboxListHeaderTest extends TestCase
@@ -57,7 +58,7 @@ public function testUtf8CharsInDomainAreIdnEncoded()
57
58
58
59
public function testUtf8CharsInLocalPartThrows ()
59
60
{
60
- $ this ->expectException (\ Symfony \ Component \ Mime \ Exception \ AddressEncoderException::class);
61
+ $ this ->expectException (AddressEncoderException::class);
61
62
$ header =
new MailboxListHeader (
'From ' , [
new Address (
'chrï[email protected] ' ,
'Chris Corbyn ' )]);
62
63
$ header ->getAddressStrings ();
63
64
}
Original file line number Diff line number Diff line change 13
13
14
14
use PHPUnit \Framework \TestCase ;
15
15
use Symfony \Component \Mime \Address ;
16
+ use Symfony \Component \Mime \Exception \AddressEncoderException ;
16
17
use Symfony \Component \Mime \Header \PathHeader ;
17
18
18
19
class PathHeaderTest extends TestCase
@@ -51,7 +52,7 @@ public function testAddressIsIdnEncoded()
51
52
52
53
public function testAddressMustBeEncodable ()
53
54
{
54
- $ this ->expectException (\ Symfony \ Component \ Mime \ Exception \ AddressEncoderException::class);
55
+ $ this ->expectException (AddressEncoderException::class);
55
56
$ header =
new PathHeader (
'Return-Path ' ,
new Address (
'chrï[email protected] ' ));
56
57
$ header ->getBodyAsString ();
57
58
}
You can’t perform that action at this time.
0 commit comments