ILIAS
trunk Revision v11.0_alpha-1753-gb21ca8c4367
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
URLBuilderTokenTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI
;
22
23
use
PHPUnit\Framework\TestCase
;
24
25
class
URLBuilderTokenTest
extends
TestCase
26
{
27
public
function
testConstruct
(): void
28
{
29
$token
=
new
URLBuilderToken
([
'test'
],
'foo'
);
30
$this->assertInstanceOf(URLBuilderToken::class,
$token
);
31
$this->assertIsString(
$token
->getToken());
32
$this->assertNotEmpty(
$token
->getToken());
33
}
34
35
public
function
testTokenLength
(): void
36
{
37
$token
=
new
URLBuilderToken
([
'test'
],
'foo'
);
38
$this->assertEquals(
URLBuilderToken::TOKEN_LENGTH
, strlen(
$token
->getToken()));
39
}
40
41
public
function
testTokenName
(): void
42
{
43
$token
=
new
URLBuilderToken
([
'test'
],
'foo'
);
44
$this->assertEquals(
'test_foo'
,
$token
->getName());
45
}
46
}
ILIAS\UI\URLBuilderTokenTest\testTokenLength
testTokenLength()
Definition:
URLBuilderTokenTest.php:35
ILIAS\UI\URLBuilderToken\TOKEN_LENGTH
const TOKEN_LENGTH
Definition:
URLBuilderToken.php:31
ILIAS\UI\URLBuilderToken
URLBuilderToken.
Definition:
URLBuilderToken.php:29
ILIAS\UI\URLBuilderTokenTest\testTokenName
testTokenName()
Definition:
URLBuilderTokenTest.php:41
$token
$token
Definition:
xapitoken.php:70
ILIAS\UI\URLBuilderTokenTest\testConstruct
testConstruct()
Definition:
URLBuilderTokenTest.php:27
ILIAS\UI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
TestCase
ILIAS\UI\URLBuilderTokenTest
Definition:
URLBuilderTokenTest.php:25
components
ILIAS
UI
tests
URLBuilderTokenTest.php
Generated on Thu Apr 10 2025 23:04:31 for ILIAS by
1.8.13 (using
Doxyfile
)