ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSimpleTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 use ILIAS\Export\ImportHandler\Path\Node\Simple as ilSimpleFilePathNode;
25 
26 class ilSimpleTest extends TestCase
27 {
28  public function testSimpleNode(): void
29  {
30  $node = new ilSimpleFilePathNode();
31  $node2 = $node->withName('Name1');
32 
33  $this->assertEquals('', $node->toString());
34  $this->assertEquals('Name1', $node2->toString());
35  $this->assertTrue($node->requiresPathSeparator());
36  $this->assertTrue($node2->requiresPathSeparator());
37  }
38 }