ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
9 {
10  const LOCAL_PART = 'phpunit';
11  const DOMAIN_PART = 'ilias.de';
12 
16  public function testInstanceCanBeCreated()
17  {
18  $address = new \ilMailAddress(self::LOCAL_PART, self::DOMAIN_PART);
19 
20  $this->assertInstanceOf('ilMailAddress', $address);
21 
22  return $address;
23  }
24 
30  {
31  $this->assertEquals($address->getMailbox(), self::LOCAL_PART);
32  $this->assertEquals($address->getHost(), self::DOMAIN_PART);
33  }
34 }
Class ilMailBaseTest.
testAddressShouldReturnMailboxAndHost(\ilMailAddress $address)
testInstanceCanBeCreated
Class ilMailAddressTest.
Class ilMailAddress.