ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
ilMailAddressTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
PHPUnit\Framework\Attributes\Depends
;
22
23
class
ilMailAddressTest
extends
ilMailBaseTestCase
24
{
25
private
const
string
LOCAL_PART
=
'phpunit'
;
26
private
const
string
DOMAIN_PART
=
'ilias.de'
;
27
28
public
function
testInstanceCanBeCreated
():
ilMailAddress
29
{
30
$address =
new
ilMailAddress
(self::LOCAL_PART, self::DOMAIN_PART);
31
32
$this->assertInstanceOf(
'ilMailAddress'
, $address);
33
34
return
$address;
35
}
36
37
#[Depends('testInstanceCanBeCreated')]
38
public
function
testAddressShouldReturnMailboxAndHost
(
ilMailAddress
$address): void
39
{
40
$this->assertSame(self::LOCAL_PART, $address->
getMailbox
());
41
$this->assertSame(self::DOMAIN_PART, $address->
getHost
());
42
}
43
}
ilMailAddressTest\testAddressShouldReturnMailboxAndHost
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
Definition:
ilMailAddressTest.php:38
ilMailAddress\getMailbox
getMailbox()
Definition:
class.ilMailAddress.php:43
ilMailAddressTest\LOCAL_PART
const string LOCAL_PART
Definition:
ilMailAddressTest.php:25
ilMailBaseTestCase
Definition:
ilMailBaseTestCase.php:25
ilMailAddressTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilMailAddressTest.php:28
ilMailAddressTest
Definition:
ilMailAddressTest.php:23
Depends
ilMailAddress\getHost
getHost()
Definition:
class.ilMailAddress.php:37
ilMailAddressTest\DOMAIN_PART
const string DOMAIN_PART
Definition:
ilMailAddressTest.php:26
ilMailAddress
Definition:
class.ilMailAddress.php:21
components
ILIAS
Mail
tests
ilMailAddressTest.php
Generated on Sun Aug 31 2025 23:03:19 for ILIAS by
1.8.13 (using
Doxyfile
)