ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilObjectDefinitionTest.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4use PHPUnit\Framework\TestCase;
5
9class ilObjectDefinitionTest extends TestCase
10{
11 protected $backupGlobals = false;
12
13 protected function setUp() : void
14 {
15 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
16 ilUnitUtil::performInitialisation();
17 }
18
22 public function testObjDefinitionReader()
23 {
24 include_once("./setup/classes/class.ilObjDefReader.php");
25 $def_reader = new ilObjDefReader(
26 "./Services/Object/test/testmodule.xml",
27 "DefinitionTest",
28 "Modules"
29 );
30
31 $def_reader->deleteObjectDefinition("xx1");
32 $def_reader->startParsing();
33
34 $this->assertEquals("", $result);
35 }
36}
$result
An exception for terminatinating execution or to throw for unit testing.
Component definition reader (reads common tags in module.xml and service.xml files) Name is misleadin...
@group needsInstalledILIAS
testObjDefinitionReader()
@group IL_Init