Mock FileTransfer object for test case.


Expanded class hierarchy of TestFileTransfer


core/modules/simpletest/tests/filetransfer.test, line 86


Contains filters are case sensitive
Name Modifierssort descending Type Description
TestFileTransfer::__construct function Overrides FileTransfer::__construct
TestFileTransfer::connect function Overrides FileTransfer::connect
TestFileTransfer::copyFileJailed function Overrides FileTransfer::copyFileJailed
TestFileTransfer::createDirectoryJailed function Overrides FileTransfer::createDirectoryJailed
TestFileTransfer::removeFileJailed function Overrides FileTransfer::removeFileJailed
TestFileTransfer::isDirectory function Overrides FileTransfer::isDirectory
TestFileTransfer::isFile function Overrides FileTransfer::isFile
TestFileTransfer::chmodJailed function
FileTransfer::__get function Implementation of the magic __get() method.
FileTransfer::sanitizePath function Changes backslashes to slashes, also removes a trailing slash.
FileTransfer::findChroot function Returns the chroot property for this connection.
FileTransfer::setChroot function Sets the chroot and changes the jail to match the correct path scheme
TestFileTransfer::removeDirectoryJailed protected function Overrides FileTransfer::removeDirectoryJailed
FileTransfer::copyDirectoryJailed protected function Copies a directory.
TestFileTransfer::$host protected property
TestFileTransfer::$username protected property Overrides FileTransfer::$username
TestFileTransfer::$password protected property Overrides FileTransfer::$password
TestFileTransfer::$port protected property Overrides FileTransfer::$port
FileTransfer::$hostname protected property
FileTransfer::checkPath protected final function Checks that the path is inside the jail and throws an exception if not.
FileTransfer::fixRemotePath protected final function Returns a modified path suitable for passing to the server. If a path is a windows path, makes it POSIX compliant by removing the drive letter. If $this->chroot has a value, it is stripped from the path to allow for chroot'd filetransfer systems.
FileTransfer::getSettingsForm public function Returns a form to collect connection settings credentials.
TestFileTransfer::$shouldIsDirectoryReturnTrue public property This is for testing the CopyRecursive logic.
FileTransfer::copyDirectory public final function Copies a directory.
FileTransfer::chmod public final function
FileTransfer::createDirectory public final function Creates a directory.
FileTransfer::removeDirectory public final function Removes a directory.
FileTransfer::copyFile public final function Copies a file.
FileTransfer::removeFile public final function Removes a file.
TestFileTransfer::factory static function Overrides FileTransfer::factory