ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilHandlerTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
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 }
if($err=$client->getError()) $namespace