Skip to content

Commit 0ae7140

Browse files
[Mime] Fix tests
1 parent 40b8e95 commit 0ae7140

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\Mime\Address;
1616
use Symfony\Component\Mime\Exception\InvalidArgumentException;
17+
use Symfony\Component\Mime\Exception\RfcComplianceException;
1718

1819
class AddressTest extends TestCase
1920
{
@@ -33,7 +34,7 @@ public function testConstructor()
3334

3435
public function testConstructorWithInvalidAddress()
3536
{
36-
$this->expectException(\InvalidArgumentException::class);
37+
$this->expectException(RfcComplianceException::class);
3738
new Address('fab pot@symfony.com');
3839
}
3940

0 commit comments

Comments
 (0)