ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
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 
31  {
32  $this->assertEquals($address->getMailbox(), self::LOCAL_PART);
33  $this->assertEquals($address->getHost(), self::DOMAIN_PART);
34  }
35 }
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
testInstanceCanBeCreated
Class ilMailAddress.