ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
PasswordTest.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/* Copyright (c) 2018 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
6
7
require_once(
"libs/composer/vendor/autoload.php"
);
8
9
use
ILIAS\Data
;
10
use
PHPUnit\Framework\TestCase
;
11
17
class
PasswordTest
extends
TestCase
18
{
19
protected
function
setUp
(): void
20
{
21
$this->f =
new
Data\Factory();
22
}
23
24
public
function
testValue
(): void
25
{
26
$pass =
'secret'
;
27
$pwd = $this->f->password($pass);
28
$this->assertEquals($pass, $pwd->toString());
29
}
30
31
public
function
testWrongParam
(): void
32
{
33
$this->expectException(TypeError::class);
34
$pwd = $this->f->password(123);
35
}
36
}
PasswordTest\testWrongParam
testWrongParam()
Definition:
PasswordTest.php:31
PasswordTest
Tests working with color data object.
Definition:
PasswordTest.php:17
PasswordTest\setUp
setUp()
Definition:
PasswordTest.php:19
PasswordTest\testValue
testValue()
Definition:
PasswordTest.php:24
TestCase
ILIAS\Data
Definition:
Alphanumeric.php:11
tests
Data
PasswordTest.php
Generated on Sun Apr 6 2025 22:03:04 for ILIAS by
1.8.13 (using
Doxyfile
)