You are here

function TestFileTransfer::removeFileJailed in Drupal 7

Removes a file.

Parameters

$destination: The destination file to be removed.

Overrides FileTransfer::removeFileJailed

File

modules/simpletest/tests/filetransfer.test, line 132

Class

TestFileTransfer
Mock FileTransfer object for test case.

Code

function removeFileJailed($destination) {
  if (!ftp_delete($this->connection, $item)) {
    throw new FileTransferException('Unable to remove to file @file.', NULL, array(
      '@file' => $item,
    ));
  }
}