Definition at line 8 of file KeyValueTest.php.
◆ testKeyValue()
Sabre\Xml\Deserializer\KeyValueTest::testKeyValue |
( |
| ) |
|
Definition at line 10 of file KeyValueTest.php.
References $input, Sabre\VObject\$output, $reader, and Sabre\Xml\Deserializer\keyValue().
14 <root xmlns=
"http://sabredav.org/ns">
18 <elem3 xmlns=
"http://sabredav.org/another-ns">
20 <elem5>foo & bar</elem5>
28 '{http://sabredav.org/ns}struct' =>
function(Reader
$reader) {
36 'name' =>
'{http://sabredav.org/ns}root',
39 'name' =>
'{http://sabredav.org/ns}struct',
43 '{http://sabredav.org/another-ns}elem3' => [
45 'name' =>
'{http://sabredav.org/another-ns}elem4',
50 'name' =>
'{http://sabredav.org/another-ns}elem5',
51 'value' =>
'foo & bar',
keyValue(Reader $reader, $namespace=null)
This class provides a number of 'deserializer' helper functions.
◆ testKeyValueLoop()
Sabre\Xml\Deserializer\KeyValueTest::testKeyValueLoop |
( |
| ) |
|
This bug is a weird one, because it triggers an infinite loop, but only if the XML document is a certain size (in bytes). Removing one or two characters from the xml body here cause the infinite loop to not get triggered, so to properly test this bug (Issue #94), don't change the XML body.
Definition at line 66 of file KeyValueTest.php.
References $reader, and Sabre\Xml\Deserializer\keyValue().
76 <foo ft="PRNTING" Ppt="YES" AutoClose="YES" SkipUnverified="NO" Test="NO"> 78 <MailClass>NONE</MailClass> 79 <PackageType>ENVELOPE</PackageType> 80 <WeightOz>1</WeightOz> 81 <FleetType>DC</FleetType> 83 <MailClass>NONE</MailClass> 84 <PackageType>ENVELOPE</PackageType> 85 <WeightOz>1</WeightOz> 86 <FleetType>DC/FleetType> 94 '{}Package' =>
function(
$reader) {
99 if (isset($keyValue[
'{}WeightOz'])){
100 $recipient[
'referenceId'] = $keyValue[
'{}WeightOz'];
keyValue(Reader $reader, $namespace=null)
This class provides a number of 'deserializer' helper functions.
The documentation for this class was generated from the following file: