ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
ilMailAddressTest.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
require_once
'Services/Mail/test/ilMailBaseTest.php'
;
5
require_once
'Services/Mail/classes/Address/class.ilMailAddress.php'
;
6
10
class
ilMailAddressTest
extends
\ilMailBaseTest
11
{
12
const
LOCAL_PART
=
'phpunit'
;
13
const
DOMAIN_PART
=
'ilias.de'
;
14
18
public
function
testInstanceCanBeCreated
()
19
{
20
$address =
new
ilMailAddress
(self::LOCAL_PART, self::DOMAIN_PART);
21
22
$this->assertInstanceOf(
'ilMailAddress'
, $address);
23
24
return
$address;
25
}
26
30
public
function
testAddressShouldReturnMailboxAndHost
(
ilMailAddress
$address)
31
{
32
$this->assertEquals($address->
getMailbox
(), self::LOCAL_PART);
33
$this->assertEquals($address->
getHost
(), self::DOMAIN_PART);
34
}
35
}
ilMailAddressTest\testAddressShouldReturnMailboxAndHost
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
testInstanceCanBeCreated
Definition:
ilMailAddressTest.php:30
ilMailAddress\getMailbox
getMailbox()
Definition:
class.ilMailAddress.php:58
ilMailAddressTest\DOMAIN_PART
const DOMAIN_PART
Definition:
ilMailAddressTest.php:13
ilMailBaseTest
Definition:
ilMailBaseTest.php:9
ilMailAddressTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilMailAddressTest.php:18
ilMailAddressTest
Definition:
ilMailAddressTest.php:10
ilMailAddress\getHost
getHost()
Definition:
class.ilMailAddress.php:50
ilMailAddressTest\LOCAL_PART
const LOCAL_PART
Definition:
ilMailAddressTest.php:12
ilMailAddress
Class ilMailAddress.
Definition:
class.ilMailAddress.php:8
Services
Mail
test
ilMailAddressTest.php
Generated on Sat Jan 18 2025 19:01:34 for ILIAS by
1.8.13 (using
Doxyfile
)