class MockTestConnection
Mock connection object for test case.
Hierarchy
- class \Drupal\Tests\system\Functional\FileTransfer\MockTestConnection
 
Expanded class hierarchy of MockTestConnection
File
- 
              core/
modules/ system/ tests/ src/ Functional/ FileTransfer/ MockTestConnection.php, line 8  
Namespace
Drupal\Tests\system\Functional\FileTransferView source
class MockTestConnection {
  protected $commandsRun = [];
  public $connectionString;
  public function run($cmd) {
    $this->commandsRun[] = $cmd;
  }
  public function flushCommands() {
    $out = $this->commandsRun;
    $this->commandsRun = [];
    return $out;
  }
}
Members
| Title Sort descending | Modifiers | Object type | Summary | 
|---|---|---|---|
| MockTestConnection::$commandsRun | protected | property | |
| MockTestConnection::$connectionString | public | property | |
| MockTestConnection::flushCommands | public | function | |
| MockTestConnection::run | public | function | 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.