48 $identification = $identification_generator->getUniqueResourceIdentification();
51 $path = $path_generator->getPathFor($identification);
52 $this->assertGreaterThanOrEqual(strlen($identification->serialize()), strlen(
$path));
53 foreach ($this->prohibited as $value) {
54 $this->assertFalse(strpos(
$path, (
string)$value));
57 $new_identification = $path_generator->getIdentificationFor(
$path);
58 $this->assertEquals($identification->serialize(), $new_identification->serialize());
64 $identification = $identification_generator->getUniqueResourceIdentification();
67 $path = $path_generator->getPathFor($identification);
69 foreach ($this->prohibited as $value) {
70 $this->assertFalse(strpos(
$path, (
string)$value));
73 $new_identification = $path_generator->getIdentificationFor(
$path);
74 $this->assertEquals($identification->serialize(), $new_identification->serialize());
Class ResourceBuilderTest.
Class UniqueIDIdentificationGenerator.
Class UUIDBasedPathGenerator.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class MaxNestingPathGenerator.