You are here

MockTestConnection.php in Drupal 8

File

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

namespace Drupal\Tests\system\Functional\FileTransfer;


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

}

Classes

Namesort descending Description
MockTestConnection Mock connection object for test case.