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('
[email protected]'
));
$this->
assertEquals($address,
$header->
getAddress());
} public function testAddressMustComplyWithRfc2822() { $this->
expectException(\Exception::
class);
new PathHeader('Return-Path',
new Address('chr
[email protected]'
));
} public function testValueIsAngleAddrWithValidAddress() {