class MockTestConnection

Mock connection object for test case.

Hierarchy

Expanded class hierarchy of MockTestConnection

File

drupal/core/modules/system/lib/Drupal/system/Tests/FileTransfer/MockTestConnection.php, line 13
Definition of Drupal\system\Tests\FileTransfer\MockTestConnection.

Namespace

Drupal\system\Tests\FileTransfer
View source
class MockTestConnection {
  var $commandsRun = array();
  var $connectionString;
  function run($cmd) {
    $this->commandsRun[] = $cmd;
  }
  function flushCommands() {
    $out = $this->commandsRun;
    $this->commandsRun = array();
    return $out;
  }

}

Members