MockTestConnection.php

Definition of Drupal\system\Tests\FileTransfer\MockTestConnection.

Namespace

Drupal\system\Tests\FileTransfer

File

drupal/core/modules/system/lib/Drupal/system/Tests/FileTransfer/MockTestConnection.php
View source
<?php

/**
 * @file
 * Definition of Drupal\system\Tests\FileTransfer\MockTestConnection.
 */
namespace Drupal\system\Tests\FileTransfer;


/**
 * Mock connection object for test case.
 */
class MockTestConnection {
  var $commandsRun = array();
  var $connectionString;
  function run($cmd) {
    $this->commandsRun[] = $cmd;
  }
  function flushCommands() {
    $out = $this->commandsRun;
    $this->commandsRun = array();
    return $out;
  }

}

Classes

Namesort descending Description
MockTestConnection Mock connection object for test case.