Skip to content

Commit 4d7e13f

Browse files
Merge branch '6.4' into 7.1
* 6.4: [Mime] Fix tests
2 parents 1f4336d + 2320f3d commit 4d7e13f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Mime/Tests/AddressTest.php

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

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Mime\Address;
16+
use Symfony\Component\Mime\Exception\InvalidArgumentException;
17+
use Symfony\Component\Mime\Exception\RfcComplianceException;
1618

1719
class AddressTest extends TestCase
1820
{
@@ -32,7 +34,7 @@ public function testConstructor()
3234

3335
public function testConstructorWithInvalidAddress()
3436
{
35-
$this->expectException(\InvalidArgumentException::class);
37+
$this->expectException(RfcComplianceException::class);
3638
new Address('fab pot@symfony.com');
3739
}
3840

0 commit comments

Comments
 (0)