Definition at line 8 of file UriTest.php.
◆ testDeserialize()
Sabre\Xml\Element\UriTest::testDeserialize |
( |
| ) |
|
Definition at line 10 of file UriTest.php.
References $input, Sabre\VObject\$output, and $reader.
14 <root xmlns=
"http://sabredav.org/ns">
20 $reader->contextUri =
'http://example.org/';
22 '{http://sabredav.org/ns}uri' =>
'Sabre\\Xml\\Element\\Uri',
30 'name' =>
'{http://sabredav.org/ns}root',
33 'name' =>
'{http://sabredav.org/ns}uri',
34 'value' =>
new Uri(
'http://example.org/foo/bar'),
◆ testSerialize()
Sabre\Xml\Element\UriTest::testSerialize |
( |
| ) |
|
Definition at line 45 of file UriTest.php.
References Sabre\VObject\$output, and ILIAS\FileDelivery\http().
47 $writer =
new Writer();
48 $writer->namespaceMap = [
49 'http://sabredav.org/ns' => null
51 $writer->openMemory();
52 $writer->startDocument(
'1.0');
53 $writer->setIndent(
true);
54 $writer->contextUri =
'http://example.org/';
56 '{http://sabredav.org/ns}root' => [
57 '{http://sabredav.org/ns}uri' =>
new Uri(
'/foo/bar'),
61 $output = $writer->outputMemory();
65 <root xmlns=
"http://sabredav.org/ns">
71 $this->assertEquals($expected,
$output);
static http()
Fetches the global http state from ILIAS.
The documentation for this class was generated from the following file:
- libs/composer/vendor/sabre/xml/tests/Sabre/Xml/Element/UriTest.php