ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
TooManyMatchesTest.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Sabre\DAV\Exception
;
4
5
use
DOMDocument
;
6
use
Sabre\DAV
;
7
8
class
TooManyMatchesTest
extends
\PHPUnit_Framework_TestCase
{
9
10
function
testSerialize
() {
11
12
$dom =
new
DOMDocument
(
'1.0'
);
13
$dom->formatOutput =
true
;
14
$root
= $dom->createElement(
'd:root'
);
15
16
$dom->appendChild(
$root
);
17
$root
->setAttribute(
'xmlns:d'
,
'DAV:'
);
18
19
$locked =
new
TooManyMatches();
20
21
$locked->serialize(
new
DAV\
Server
(),
$root
);
22
23
$output
= $dom->saveXML();
24
25
$expected =
'<?xml version="1.0"?>
26
<d:root xmlns:d="DAV:">
27
<d:number-of-matches-within-limits xmlns:d="DAV:"/>
28
</d:root>
29
'
;
30
31
$this->assertEquals($expected,
$output
);
32
33
}
34
35
}
Sabre\DAV
Sabre\DAV\Exception\TooManyMatchesTest
Definition:
TooManyMatchesTest.php:8
DOMDocument
Sabre\VObject\$output
$output
Definition:
mergeduplicates.php:36
PHPUnit_Framework_TestCase
Sabre\DAV\Server
Main DAV server class.
Definition:
Server.php:23
$root
$root
Definition:
sabredav.php:45
php
Sabre\DAV\Exception\TooManyMatchesTest\testSerialize
testSerialize()
Definition:
TooManyMatchesTest.php:10
Sabre\DAV\Exception
Definition:
BadRequest.php:3
libs
composer
vendor
sabre
dav
tests
Sabre
DAV
Exception
TooManyMatchesTest.php
Generated on Thu Jan 16 2025 19:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)