ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSimpleTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\Export\ImportHandler\Path\Node\Simple as ilSimpleFilePathNode;
24use PHPUnit\Framework\TestCase;
25
26class 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}