3 namespace Drupal\Tests\system\Functional\FileTransfer;
6 * Mock connection object for test case.
8 class MockTestConnection {
10 protected $commandsRun = [];
11 public $connectionString;
13 public function run($cmd) {
14 $this->commandsRun[] = $cmd;
17 public function flushCommands() {
18 $out = $this->commandsRun;
19 $this->commandsRun = [];