Definition at line 7 of file AceConflictTest.php.
◆ testSerialize()
Sabre\DAVACL\Exception\AceConflictTest::testSerialize |
( |
| ) |
|
Definition at line 9 of file AceConflictTest.php.
References $root, and $server.
11 $ex =
new AceConflict(
'message');
14 $dom = new \DOMDocument(
'1.0',
'utf-8');
15 $root = $dom->createElementNS(
'DAV:',
'd:root');
16 $dom->appendChild(
$root);
22 '/d:root/d:no-ace-conflict' => 1,
26 $dom2 = new \DOMDocument(
'1.0',
'utf-8');
27 $dom2->loadXML($dom->saveXML());
29 $dxpath = new \DOMXPath($dom2);
30 $dxpath->registerNamespace(
'd',
'DAV:');
31 foreach ($xpaths as $xpath => $count) {
33 $this->assertEquals($count, $dxpath->query($xpath)->length,
'Looking for : ' . $xpath .
', we could only find ' . $dxpath->query($xpath)->length .
' elements, while we expected ' . $count);
The documentation for this class was generated from the following file: