move() public method

This method returns the information from the newly created directory
public move ( mixed $from, mixed $to, string $root = null ) : stdclass
$from mixed Source path
$to mixed destination path
$root string Use this to override the default root path (sandbox/dropbox)
return stdclass
Exemplo n.º 1
0
 /**
  * @param \Dropbox_API $dropbox
  */
 function it_does_not_rename_file($dropbox)
 {
     $dropbox->move('filename', 'filename2')->willThrow(new \Dropbox_Exception_NotFound());
     $this->rename('filename', 'filename2')->shouldReturn(false);
 }