3declare(strict_types=1);
 
   32    protected function setUp(): void
 
   39        $uri = 
new URI(
'http://ilias.de');
 
   40        $transformedValue = $this->transformation->transform($uri);
 
   42        $this->assertEquals(
'http://ilias.de', $transformedValue);
 
   47        $uri = 
new URI(
'http://ilias.de/with/path');
 
   48        $transformedValue = $this->transformation->transform($uri);
 
   50        $this->assertEquals(
'http://ilias.de/with/path', $transformedValue);
 
   55        $uri = 
new URI(
'http://ilias.de/test.php#title');
 
   56        $transformedValue = $this->transformation->transform($uri);
 
   58        $this->assertEquals(
'http://ilias.de/test.php#title', $transformedValue);
 
   63        $uri = 
new URI(
'http://ilias.de?test=something&further=1');
 
   64        $transformedValue = $this->transformation->transform($uri);
 
   66        $this->assertEquals(
'http://ilias.de?test=something&further=1', $transformedValue);
 
   71        $uri = 
new URI(
'http://ilias.de/with/path?test=something&further=1');
 
   72        $transformedValue = $this->transformation->transform($uri);
 
   74        $this->assertEquals(
'http://ilias.de/with/path?test=something&further=1', $transformedValue);
 
   79        $this->expectException(ConstraintViolationException::class);
 
   80        $transformedValue = $this->transformation->transform(
'http://ilias.de');
 
   82        $this->assertEquals(
'http://ilias.de', $transformedValue);
 
The scope of this class is split ilias-conform URI's into components.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...