You are here

class MockTestConnection in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/src/Tests/FileTransfer/MockTestConnection.php \Drupal\system\Tests\FileTransfer\MockTestConnection

Mock connection object for test case.

Hierarchy

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\FileTransfer
View 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