21 require_once(__DIR__ .
"/../AbstractTestBase.php");
50 $identification = $identification_generator->getUniqueResourceIdentification();
53 $path = $path_generator->getPathFor($identification);
54 $this->assertGreaterThanOrEqual(strlen($identification->serialize()), strlen(
$path));
55 foreach ($this->prohibited as $value) {
56 $this->assertFalse(strpos(
$path, (
string)$value));
59 $new_identification = $path_generator->getIdentificationFor(
$path);
60 $this->assertEquals($identification->serialize(), $new_identification->serialize());
66 $identification = $identification_generator->getUniqueResourceIdentification();
69 $path = $path_generator->getPathFor($identification);
71 foreach ($this->prohibited as $value) {
72 $this->assertFalse(strpos(
$path, (
string)$value));
75 $new_identification = $path_generator->getIdentificationFor(
$path);
76 $this->assertEquals($identification->serialize(), $new_identification->serialize());
Class UniqueIDIdentificationGenerator.
Class UUIDBasedPathGenerator.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ResourceBuilderTest.
Class MaxNestingPathGenerator.