ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
require_once __DIR__ .
'/../classes/class.ilPDFGenerationConstants.php'
;
5
10
class
ilPdfGeneratorConstantsTest
extends
PHPUnit_Framework_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
PHPUnit_Framework_TestCase
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
php
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 Thu Jan 16 2025 19:02:27 for ILIAS by
1.8.13 (using
Doxyfile
)