ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMailAddressTest Class Reference
+ Inheritance diagram for ilMailAddressTest:
+ Collaboration diagram for ilMailAddressTest:

Public Member Functions

 testInstanceCanBeCreated ()
 
 testAddressShouldReturnMailboxAndHost (ilMailAddress $address)
 testInstanceCanBeCreated More...
 

Data Fields

const LOCAL_PART = 'phpunit'
 
const DOMAIN_PART = 'ilias.de'
 

Additional Inherited Members

- Protected Member Functions inherited from ilMailBaseTest
 setUp ()
 
 setGlobalVariable ($name, $value)
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 10 of file ilMailAddressTest.php.

Member Function Documentation

◆ testAddressShouldReturnMailboxAndHost()

ilMailAddressTest::testAddressShouldReturnMailboxAndHost ( ilMailAddress  $address)

testInstanceCanBeCreated

Definition at line 30 of file ilMailAddressTest.php.

References ilMailAddress\getHost(), and ilMailAddress\getMailbox().

31  {
32  $this->assertEquals($address->getMailbox(), self::LOCAL_PART);
33  $this->assertEquals($address->getHost(), self::DOMAIN_PART);
34  }
+ Here is the call graph for this function:

◆ testInstanceCanBeCreated()

ilMailAddressTest::testInstanceCanBeCreated ( )
Returns
ilMailAddress

Definition at line 18 of file ilMailAddressTest.php.

19  {
20  $address = new ilMailAddress(self::LOCAL_PART, self::DOMAIN_PART);
21 
22  $this->assertInstanceOf('ilMailAddress', $address);
23 
24  return $address;
25  }
Class ilMailAddress.

Field Documentation

◆ DOMAIN_PART

const ilMailAddressTest::DOMAIN_PART = 'ilias.de'

Definition at line 13 of file ilMailAddressTest.php.

◆ LOCAL_PART

const ilMailAddressTest::LOCAL_PART = 'phpunit'

Definition at line 12 of file ilMailAddressTest.php.


The documentation for this class was generated from the following file: