ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
▼
ILIAS
Test List
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Data Structures
▼
Files
►
File List
►
Globals
►
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ilGroupNameAsMailValidatorTest.php
Go to the documentation of this file.
1
<?php declare(strict_types=1);
2
3
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
10
class
ilGroupNameAsMailValidatorTest
extends
ilMailBaseTest
11
{
15
public
function
testGroupIsDetectedIfGroupNameExists
() : void
16
{
17
$validator =
new
ilGroupNameAsMailValidator
(
'someHost'
,
function
(
string
$groupName) {
18
return
true
;
19
});
20
21
$this->assertTrue($validator->validate(
new
ilMailAddress
(
'phpunit'
,
'someHost'
)));
22
}
23
27
public
function
testGroupIsNotDetectedIfGroupNameDoesNotExists
() : void
28
{
29
$validator =
new
ilGroupNameAsMailValidator
(
'someHost'
,
function
(
string
$groupName) {
30
return
false
;
31
});
32
33
$this->assertFalse($validator->validate(
new
ilMailAddress
(
'someHost'
,
'someHost'
)));
34
}
35
}
ilGroupNameAsMailValidator
Class ilGroupNameAsMailValidator.
Definition:
class.ilGroupNameAsMailValidator.php:9
ilGroupNameAsMailValidatorTest\testGroupIsNotDetectedIfGroupNameDoesNotExists
testGroupIsNotDetectedIfGroupNameDoesNotExists()
Definition:
ilGroupNameAsMailValidatorTest.php:27
ilMailBaseTest
Class ilMailBaseTest.
Definition:
ilMailBaseTest.php:12
ilGroupNameAsMailValidatorTest
Class ilGroupNameAsMailValidatorTest.
Definition:
ilGroupNameAsMailValidatorTest.php:10
ilGroupNameAsMailValidatorTest\testGroupIsDetectedIfGroupNameExists
testGroupIsDetectedIfGroupNameExists()
Definition:
ilGroupNameAsMailValidatorTest.php:15
ilMailAddress
Class ilMailAddress.
Definition:
class.ilMailAddress.php:8
Services
Mail
test
ilGroupNameAsMailValidatorTest.php
Generated on Wed Apr 9 2025 20:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)