ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
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 
30  {
31  $this->assertEquals($address->getMailbox(), self::LOCAL_PART);
32  $this->assertEquals($address->getHost(), self::DOMAIN_PART);
33  }
34 }
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
testInstanceCanBeCreated
Class ilMailAddress.