Definition at line 8 of file LockedTest.php.
◆ testSerialize()
Sabre\DAV\Exception\LockedTest::testSerialize |
( |
| ) |
|
Definition at line 10 of file LockedTest.php.
References Sabre\VObject\$output, and $root.
13 $dom->formatOutput =
true;
14 $root = $dom->createElement(
'd:root');
16 $dom->appendChild(
$root);
17 $root->setAttribute(
'xmlns:d',
'DAV:');
19 $lockInfo =
new DAV\Locks\LockInfo();
20 $lockInfo->uri =
'/foo';
21 $locked =
new Locked($lockInfo);
23 $locked->serialize(
new DAV\Server(),
$root);
27 $expected =
'<?xml version="1.0"?> 28 <d:root xmlns:d="DAV:"> 29 <d:lock-token-submitted xmlns:d="DAV:"> 31 </d:lock-token-submitted> 35 $this->assertEquals($expected,
$output);
◆ testSerializeAmpersand()
Sabre\DAV\Exception\LockedTest::testSerializeAmpersand |
( |
| ) |
|
Definition at line 39 of file LockedTest.php.
References Sabre\VObject\$output, and $root.
42 $dom->formatOutput =
true;
43 $root = $dom->createElement(
'd:root');
45 $dom->appendChild(
$root);
46 $root->setAttribute(
'xmlns:d',
'DAV:');
48 $lockInfo =
new DAV\Locks\LockInfo();
49 $lockInfo->uri =
'/foo&bar';
50 $locked =
new Locked($lockInfo);
52 $locked->serialize(
new DAV\Server(),
$root);
56 $expected =
'<?xml version="1.0"?> 57 <d:root xmlns:d="DAV:"> 58 <d:lock-token-submitted xmlns:d="DAV:"> 59 <d:href>/foo&bar</d:href> 60 </d:lock-token-submitted> 64 $this->assertEquals($expected,
$output);
The documentation for this class was generated from the following file:
- libs/composer/vendor/sabre/dav/tests/Sabre/DAV/Exception/LockedTest.php