Definition at line 9 of file Issue33Test.php.
◆ setUp()
Sabre\DAV\Issue33Test::setUp |
( |
| ) |
|
◆ testCopyMoveInfo()
Sabre\DAV\Issue33Test::testCopyMoveInfo |
( |
| ) |
|
Definition at line 17 of file Issue33Test.php.
References $info, $request, $root, $server, and Sabre\HTTP\Sapi\createFromServerArray().
19 $bar =
new SimpleCollection(
'bar');
20 $root =
new SimpleCollection(
'webdav', [$bar]);
23 $server->setBaseUri(
'/webdav/');
26 'REQUEST_URI' =>
'/webdav/bar',
27 'HTTP_DESTINATION' =>
'http://dev2.tribalos.com/webdav/%C3%A0fo%C3%B3',
28 'HTTP_OVERWRITE' =>
'F',
37 $this->assertEquals(
'%C3%A0fo%C3%B3', urlencode(
$info[
'destination']));
38 $this->assertFalse(
$info[
'destinationExists']);
39 $this->assertFalse(
$info[
'destinationNode']);
foreach($paths as $path) $request
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
◆ testDirName()
Sabre\DAV\Issue33Test::testDirName |
( |
| ) |
|
Definition at line 58 of file Issue33Test.php.
61 $dirname2 = urlencode(
'%C3%A0fo%C3%B3');
63 $this->assertTrue(dirname($dirname1) == dirname($dirname2));
◆ testEverything()
Sabre\DAV\Issue33Test::testEverything |
( |
| ) |
|
testTreeMove testCopyMoveInfo
Definition at line 71 of file Issue33Test.php.
References $request, $response, $server, $tree, and Sabre\HTTP\Sapi\createFromServerArray().
75 'REQUEST_METHOD' =>
'MOVE',
76 'REQUEST_URI' =>
'/webdav/bar',
77 'HTTP_DESTINATION' =>
'http://dev2.tribalos.com/webdav/%C3%A0fo%C3%B3',
78 'HTTP_OVERWRITE' =>
'F',
87 mkdir(SABRE_TEMPDIR .
'/issue33');
88 $dir =
new FS\Directory(SABRE_TEMPDIR .
'/issue33');
90 $dir->createDirectory(
'bar');
92 $tree =
new Tree($dir);
95 $server->setBaseUri(
'/webdav/');
99 $server->sapi =
new HTTP\SapiMock();
102 $this->assertTrue(file_exists(SABRE_TEMPDIR .
'/issue33/' . urldecode(
'%C3%A0fo%C3%B3')));
foreach($paths as $path) $request
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
◆ testTreeMove()
Sabre\DAV\Issue33Test::testTreeMove |
( |
| ) |
|
Definition at line 43 of file Issue33Test.php.
References $tree.
45 mkdir(SABRE_TEMPDIR .
'/issue33');
46 $dir =
new FS\Directory(SABRE_TEMPDIR .
'/issue33');
48 $dir->createDirectory(
'bar');
50 $tree =
new Tree($dir);
51 $tree->move(
'bar', urldecode(
'%C3%A0fo%C3%B3'));
53 $node =
$tree->getNodeForPath(urldecode(
'%C3%A0fo%C3%B3'));
54 $this->assertEquals(urldecode(
'%C3%A0fo%C3%B3'), $node->getName());
The documentation for this class was generated from the following file: