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