10 require_once(
'./libs/composer/vendor/autoload.php');
31 $uri =
new URI(
'http://ilias.de');
32 $transformedValue = $this->transformation->transform($uri);
34 $this->assertEquals(
'http://ilias.de', $transformedValue);
39 $uri =
new URI(
'http://ilias.de/with/path');
40 $transformedValue = $this->transformation->transform($uri);
42 $this->assertEquals(
'http://ilias.de/with/path', $transformedValue);
47 $uri =
new URI(
'http://ilias.de/test.php#title');
48 $transformedValue = $this->transformation->transform($uri);
50 $this->assertEquals(
'http://ilias.de/test.php#title', $transformedValue);
55 $uri =
new URI(
'http://ilias.de?test=something&further=1');
56 $transformedValue = $this->transformation->transform($uri);
58 $this->assertEquals(
'http://ilias.de?test=something&further=1', $transformedValue);
63 $uri =
new URI(
'http://ilias.de/with/path?test=something&further=1');
64 $transformedValue = $this->transformation->transform($uri);
66 $this->assertEquals(
'http://ilias.de/with/path?test=something&further=1', $transformedValue);
71 $this->expectException(ConstraintViolationException::class);
72 $transformedValue = $this->transformation->transform(
'http://ilias.de');
74 $this->assertEquals(
'http://ilias.de', $transformedValue);
The scope of this class is split ilias-conform URI's into components.