ILIAS  release_7 Revision v7.30-3-g800a261c036
ilMailAddressTest.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2
3/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
4
10{
11 const LOCAL_PART = 'phpunit';
12 const DOMAIN_PART = 'ilias.de';
13
18 {
19 $address = new ilMailAddress(self::LOCAL_PART, self::DOMAIN_PART);
20
21 $this->assertInstanceOf('ilMailAddress', $address);
22
23 return $address;
24 }
25
31 {
32 $this->assertEquals($address->getMailbox(), self::LOCAL_PART);
33 $this->assertEquals($address->getHost(), self::DOMAIN_PART);
34 }
35}
An exception for terminatinating execution or to throw for unit testing.
Class ilMailAddressTest.
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
@depends testInstanceCanBeCreated
Class ilMailAddress.
Class ilMailBaseTest.