ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
PCSourceCodeTest.php
Go to the documentation of this file.
1
<?php
2
19
use
PHPUnit\Framework\TestCase
;
20
24
class
PCSourceCodeTest
extends
COPageTestBase
25
{
26
public
function
testConstruction
(): void
27
{
28
$page = $this->
getEmptyPageWithDom
();
29
$pc =
new
ilPCSourceCode
($page);
30
$this->assertEquals(
31
ilPCSourceCode::class,
32
get_class($pc)
33
);
34
}
35
36
public
function
testCreate
(): void
37
{
38
$page = $this->
getEmptyPageWithDom
();
39
$pc =
new
ilPCSourceCode
($page);
40
$pc->create($page,
"pg"
,
""
);
41
$this->
assertXmlEquals
(
42
'<PageObject HierId="pg"><PageContent><Paragraph Language=""></Paragraph></PageContent></PageObject>'
,
43
$page->getXMLFromDom()
44
);
45
}
46
}
COPageTestBase
Definition:
COPageTestBase.php:24
PCSourceCodeTest\testCreate
testCreate()
Definition:
PCSourceCodeTest.php:36
PCSourceCodeTest
Definition:
PCSourceCodeTest.php:24
PCSourceCodeTest\testConstruction
testConstruction()
Definition:
PCSourceCodeTest.php:26
ilPCSourceCode
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPCSourceCode.php:27
COPageTestBase\getEmptyPageWithDom
getEmptyPageWithDom()
Definition:
COPageTestBase.php:207
TestCase
COPageTestBase\assertXmlEquals
assertXmlEquals(string $expected_xml_as_string, string $html_xml_string)
Definition:
COPageTestBase.php:193
components
ILIAS
COPage
tests
PCSourceCodeTest.php
Generated on Mon Sep 1 2025 23:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)