ILIAS
trunk Revision v11.0_alpha-1702-gfd3ecb7f852
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
ilMailAddressTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
25
class
ilMailAddressTest
extends
ilMailBaseTestCase
26
{
27
private
const
LOCAL_PART
=
'phpunit'
;
28
private
const
DOMAIN_PART
=
'ilias.de'
;
29
30
public
function
testInstanceCanBeCreated
():
ilMailAddress
31
{
32
$address =
new
ilMailAddress
(self::LOCAL_PART, self::DOMAIN_PART);
33
34
$this->assertInstanceOf(
'ilMailAddress'
, $address);
35
36
return
$address;
37
}
38
42
public
function
testAddressShouldReturnMailboxAndHost
(
ilMailAddress
$address): void
43
{
44
$this->assertSame(self::LOCAL_PART, $address->
getMailbox
());
45
$this->assertSame(self::DOMAIN_PART, $address->
getHost
());
46
}
47
}
ilMailAddressTest\testAddressShouldReturnMailboxAndHost
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
testInstanceCanBeCreated
Definition:
ilMailAddressTest.php:42
ilMailAddress\getMailbox
getMailbox()
Definition:
class.ilMailAddress.php:47
ilMailAddressTest\DOMAIN_PART
const DOMAIN_PART
Definition:
ilMailAddressTest.php:28
ilMailBaseTestCase
Class ilMailBaseTest.
Definition:
ilMailBaseTestCase.php:29
ilMailAddressTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilMailAddressTest.php:30
ilMailAddressTest
Class ilMailAddressTest.
Definition:
ilMailAddressTest.php:25
ilMailAddress\getHost
getHost()
Definition:
class.ilMailAddress.php:41
ilMailAddressTest\LOCAL_PART
const LOCAL_PART
Definition:
ilMailAddressTest.php:27
ilMailAddress
Class ilMailAddress.
Definition:
class.ilMailAddress.php:25
components
ILIAS
Mail
tests
ilMailAddressTest.php
Generated on Thu Apr 3 2025 23:03:16 for ILIAS by
1.8.13 (using
Doxyfile
)