ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilMailAddressTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  private const string LOCAL_PART = 'phpunit';
26  private const string DOMAIN_PART = 'ilias.de';
27 
29  {
30  $address = new ilMailAddress(self::LOCAL_PART, self::DOMAIN_PART);
31 
32  $this->assertInstanceOf('ilMailAddress', $address);
33 
34  return $address;
35  }
36 
37  #[Depends('testInstanceCanBeCreated')]
38  public function testAddressShouldReturnMailboxAndHost(ilMailAddress $address): void
39  {
40  $this->assertSame(self::LOCAL_PART, $address->getMailbox());
41  $this->assertSame(self::DOMAIN_PART, $address->getHost());
42  }
43 }
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)
const string LOCAL_PART
const string DOMAIN_PART