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
ilPdfGeneratorConstantsTest.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
use
PHPUnit\Framework\TestCase
;
5
10
class
ilPdfGeneratorConstantsTest
extends
TestCase
11
{
12
public
function
testInstanceCanBeCreated
()
13
{
14
$this->assertInstanceOf(
'ilPDFGenerationConstants'
,
new
ilPDFGenerationConstants
());
15
}
16
17
public
function
testGetOrientations
()
18
{
19
$this->assertCount(2,
ilPDFGenerationConstants::getOrientations
());
20
$orientations =
ilPDFGenerationConstants::getOrientations
();
21
$this->assertSame(
'Portrait'
, $orientations[
'Portrait'
]);
22
$this->assertSame(
'Landscape'
, $orientations[
'Landscape'
]);
23
}
24
25
public
function
testGetPageSizesNames
()
26
{
27
$this->assertCount(15,
ilPDFGenerationConstants::getPageSizesNames
());
28
}
29
30
public
function
testHeaderConstants
()
31
{
32
$this->assertSame(0,
ilPDFGenerationConstants::HEADER_NONE
);
33
$this->assertSame(1,
ilPDFGenerationConstants::HEADER_TEXT
);
34
$this->assertSame(2,
ilPDFGenerationConstants::HEADER_HTML
);
35
}
36
37
public
function
testFooterConstants
()
38
{
39
$this->assertSame(0,
ilPDFGenerationConstants::FOOTER_NONE
);
40
$this->assertSame(1,
ilPDFGenerationConstants::FOOTER_TEXT
);
41
$this->assertSame(2,
ilPDFGenerationConstants::FOOTER_HTML
);
42
}
43
}
ilPDFGenerationConstants
Definition:
class.ilPDFGenerationConstants.php:4
ilPdfGeneratorConstantsTest\testGetOrientations
testGetOrientations()
Definition:
ilPdfGeneratorConstantsTest.php:17
ilPDFGenerationConstants\getOrientations
static getOrientations()
Definition:
class.ilPDFGenerationConstants.php:36
ilPDFGenerationConstants\getPageSizesNames
static getPageSizesNames()
Definition:
class.ilPDFGenerationConstants.php:14
ilPdfGeneratorConstantsTest
Definition:
ilPdfGeneratorConstantsTest.php:10
ilPdfGeneratorConstantsTest\testHeaderConstants
testHeaderConstants()
Definition:
ilPdfGeneratorConstantsTest.php:30
ilPDFGenerationConstants\FOOTER_HTML
const FOOTER_HTML
Definition:
class.ilPDFGenerationConstants.php:12
ilPDFGenerationConstants\FOOTER_NONE
const FOOTER_NONE
Definition:
class.ilPDFGenerationConstants.php:10
ilPDFGenerationConstants\FOOTER_TEXT
const FOOTER_TEXT
Definition:
class.ilPDFGenerationConstants.php:11
ilPDFGenerationConstants\HEADER_NONE
const HEADER_NONE
Definition:
class.ilPDFGenerationConstants.php:6
ilPdfGeneratorConstantsTest\testFooterConstants
testFooterConstants()
Definition:
ilPdfGeneratorConstantsTest.php:37
ilPdfGeneratorConstantsTest\testInstanceCanBeCreated
testInstanceCanBeCreated()
Definition:
ilPdfGeneratorConstantsTest.php:12
ilPdfGeneratorConstantsTest\testGetPageSizesNames
testGetPageSizesNames()
Definition:
ilPdfGeneratorConstantsTest.php:25
TestCase
ilPDFGenerationConstants\HEADER_HTML
const HEADER_HTML
Definition:
class.ilPDFGenerationConstants.php:8
ilPDFGenerationConstants\HEADER_TEXT
const HEADER_TEXT
Definition:
class.ilPDFGenerationConstants.php:7
Services
PDFGeneration
test
ilPdfGeneratorConstantsTest.php
Generated on Sat Apr 5 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)