class MockTestConnection in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/FileTransfer/MockTestConnection.php \Drupal\system\Tests\FileTransfer\MockTestConnection
Mock connection object for test case.
Hierarchy
- class \Drupal\system\Tests\FileTransfer\MockTestConnection
Expanded class hierarchy of MockTestConnection
File
- core/
modules/ system/ src/ Tests/ FileTransfer/ MockTestConnection.php, line 13 - Contains \Drupal\system\Tests\FileTransfer\MockTestConnection.
Namespace
Drupal\system\Tests\FileTransferView source
class MockTestConnection {
protected $commandsRun = array();
public $connectionString;
function run($cmd) {
$this->commandsRun[] = $cmd;
}
function flushCommands() {
$out = $this->commandsRun;
$this->commandsRun = array();
return $out;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MockTestConnection:: |
protected | property | ||
MockTestConnection:: |
public | property | ||
MockTestConnection:: |
function | |||
MockTestConnection:: |
function |