namespace Symfony\Component\Mime\Tests\Header;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Mime\Address;
use Symfony\Component\Mime\Header\PathHeader;
class PathHeaderTest extends TestCase
{ public function testSingleAddressCanBeSetAndFetched() { $header =
new PathHeader('Return-Path',
$address =
new Address('chris@swiftmailer.org'
));
$this->
assertEquals($address,
$header->
getAddress());
} public function testAddressMustComplyWithRfc2822() { $this->
expectException(\Exception::
class);
new PathHeader('Return-Path',
new Address('chr is@swiftmailer.org'
));
} public function testValueIsAngleAddrWithValidAddress() {