ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
ilHandlerTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
Test\ImportHandler\File\Namespace
;
22
23
use
PHPUnit\Framework\TestCase
;
24
use
ILIAS\Export\ImportHandler\File\Namespace\ilHandler
as ilFileNamespaceHandler;
25
26
class
ilHandlerTest
extends
TestCase
27
{
28
protected
function
setUp
(): void
29
{
30
31
}
32
33
public
function
testNamespace
(): void
34
{
35
$namespace
=
new
ilFileNamespaceHandler();
36
$namespace
=
$namespace
->withNamespace(
'http://test/test/test/4_2'
);
37
$namespace
=
$namespace
->withPrefix(
'prefix'
);
38
39
$this->assertEquals(
'http://test/test/test/4_2'
,
$namespace
->getNamespace());
40
$this->assertEquals(
'prefix'
,
$namespace
->getPrefix());
41
}
42
}
$namespace
if($err=$client->getError()) $namespace
Definition:
dummy_client.php:55
ILIAS\Export\ImportHandler\File\Namespace\ilHandler
Definition:
class.ilHandler.php:25
Test\ImportHandler\File\Namespace
Definition:
ilCollectionTest.php:21
Test\ImportHandler\File\Namespace\ilHandlerTest
Definition:
ilHandlerTest.php:26
TestCase
Test\ImportHandler\File\Namespace\ilHandlerTest\setUp
setUp()
Definition:
ilHandlerTest.php:28
Test\ImportHandler\File\Namespace\ilHandlerTest\testNamespace
testNamespace()
Definition:
ilHandlerTest.php:33
Services
Export
test
ImportHandler
File
Namespace
ilHandlerTest.php
Generated on Wed Sep 10 2025 14:11:28 for ILIAS by
1.8.13 (using
Doxyfile
)