Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
sender example
public
function
testReturnPath
(
)
{
$e
=
new
Email
(
)
;
$e
->
returnPath
(
'fabien@symfony.com'
)
;
$this
->
assertEquals
(
new
Address
(
'fabien@symfony.com'
)
,
$e
->
getReturnPath
(
)
)
;
}
public
function
testSender
(
)
{
$e
=
new
Email
(
)
;
$e
->
sender
(
'fabien@symfony.com'
)
;
$this
->
assertEquals
(
new
Address
(
'fabien@symfony.com'
)
,
$e
->
getSender
(
)
)
;
$e
->
sender
(
$fabien
=
new
Address
(
'fabien@symfony.com'
)
)
;
$this
->
assertSame
(
$fabien
,
$e
->
getSender
(
)
)
;
}
public
function
testFrom
(
)
{
$e
=
new
Email
(
)
;
$helene
=
new
Address
(
'helene@symfony.com'
)
;
$thomas
=
new
Address
(
'thomas@symfony.com', 'Thomas'
)
;