You are here

MockTestConnection.php in Zircon Profile 8.0

Same filename and directory in other branches
  1. 8 core/modules/system/src/Tests/FileTransfer/MockTestConnection.php

File

core/modules/system/src/Tests/FileTransfer/MockTestConnection.php
View source
<?php

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


/**
 * Mock connection object for test case.
 */
class MockTestConnection {
  protected $commandsRun = array();
  public $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.