7require_once 
'Sabre/TestUtil.php';
 
   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']);
 
   45        mkdir(SABRE_TEMPDIR . 
'/issue33');
 
   48        $dir->createDirectory(
'bar');
 
   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());
 
   61        $dirname2 = urlencode(
'%C3%A0fo%C3%B3');
 
   63        $this->assertTrue(dirname($dirname1) == dirname($dirname2));
 
   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');
 
   90        $dir->createDirectory(
'bar');
 
   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
An exception for terminatinating execution or to throw for unit testing.
testEverything()
@depends testTreeMove @depends testCopyMoveInfo
The tree object is responsible for basic tree operations.
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
static clearTempDir()
This function deletes all the contents of the temporary directory.