ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 
30  public function testAddressShouldReturnMailboxAndHost(ilMailAddress $address) : void
31  {
32  $this->assertEquals($address->getMailbox(), self::LOCAL_PART);
33  $this->assertEquals($address->getHost(), self::DOMAIN_PART);
34  }
35 }
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
testInstanceCanBeCreated
Class ilMailBaseTest.
Class ilMailAddressTest.
Class ilMailAddress.