ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMailAddressTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use PHPUnit\Framework\Attributes\Depends;
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')]
39 {
40 $this->assertSame(self::LOCAL_PART, $address->getMailbox());
41 $this->assertSame(self::DOMAIN_PART, $address->getHost());
42 }
43}
const string LOCAL_PART
const string DOMAIN_PART
testAddressShouldReturnMailboxAndHost(ilMailAddress $address)