function TestFileTransfer::removeFileJailed in SimpleTest 7
Removes a file.
Parameters
$destination: The destination file to be removed.
Overrides FileTransfer::removeFileJailed
File
- 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,
));
}
}