/** * @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); }