Definition at line 5 of file InfiteLoopTest.php.
◆ testDeserialize()
Sabre\Xml\InfiteLoopTest::testDeserialize |
( |
| ) |
|
This particular xml body caused the parser to go into an infinite loop.
Need to know why.
Definition at line 11 of file InfiteLoopTest.php.
11 {
12
13 $body = '<?xml version="1.0"?>
14<d:propertyupdate xmlns:d="DAV:" xmlns:s="http://sabredav.org/NS/test">
15 <d:set><d:prop></d:prop></d:set>
16 <d:set><d:prop></d:prop></d:set>
17</d:propertyupdate>';
18
21 '{DAV:}set' => 'Sabre\\Xml\\Element\\KeyValue',
22 ];
24
26
27 $this->assertEquals([
28 'name' => '{DAV:}propertyupdate',
29 'value' => [
30 [
31 'name' => '{DAV:}set',
32 'value' => [
33 '{DAV:}prop' => null,
34 ],
35 'attributes' => [],
36 ],
37 [
38 'name' => '{DAV:}set',
39 'value' => [
40 '{DAV:}prop' => null,
41 ],
42 'attributes' => [],
43 ],
44 ],
45 'attributes' => [],
47
48 }
References Sabre\VObject\$output, and $reader.
The documentation for this class was generated from the following file: