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
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
LSUrlBuilderTest.php
Go to the documentation of this file.
1
<?php
2
3
use
PHPUnit\Framework\TestCase
;
4
use
ILIAS\Data\Factory
;
5
6
class
LSUrlBuilderTest
extends
TestCase
7
{
8
public
function
setUp
() : void
9
{
10
$data_factory =
new
Factory
();
11
$uri = $data_factory->uri(
'http://ilias.de/somepath'
);
12
$this->ub =
new
LSUrlBuilder
($uri);
13
}
14
15
public
function
testDataType
()
16
{
17
$this->assertInstanceOf(
ILIAS
\Data\URI::class, $this->ub->getURL(
'x'
));
18
}
19
20
public
function
testUrlConcatenation
()
21
{
22
$uri = $this->ub->getURL(
'command'
, 123);
23
$expected =
LSUrlBuilder::PARAM_LSO_COMMAND
.
'=command&'
24
.
LSUrlBuilder::PARAM_LSO_PARAMETER
.
'=123'
;
25
$this->assertEquals($expected, $uri->getQuery());
26
}
27
}
ILIAS
Class ChatMainBarProvider .
LSUrlBuilderTest\setUp
setUp()
Definition:
LSUrlBuilderTest.php:8
LSUrlBuilder\PARAM_LSO_COMMAND
const PARAM_LSO_COMMAND
Definition:
LSUrlBuilder.php:12
LSUrlBuilderTest
Definition:
LSUrlBuilderTest.php:6
LSUrlBuilder
Class LSUrlBuilder.
Definition:
LSUrlBuilder.php:10
LSUrlBuilderTest\testDataType
testDataType()
Definition:
LSUrlBuilderTest.php:15
Factory
LSUrlBuilder\PARAM_LSO_PARAMETER
const PARAM_LSO_PARAMETER
Definition:
LSUrlBuilder.php:13
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
TestCase
LSUrlBuilderTest\testUrlConcatenation
testUrlConcatenation()
Definition:
LSUrlBuilderTest.php:20
Modules
LearningSequence
test
LSUrlBuilderTest.php
Generated on Sun Apr 6 2025 20:01:04 for ILIAS by
1.8.13 (using
Doxyfile
)