Version 1
[yaffs-website] / web / core / modules / system / tests / src / Functional / FileTransfer / MockTestConnection.php
1 <?php
2
3 namespace Drupal\Tests\system\Functional\FileTransfer;
4
5 /**
6  * Mock connection object for test case.
7  */
8 class MockTestConnection {
9
10   protected $commandsRun = [];
11   public $connectionString;
12
13   public function run($cmd) {
14     $this->commandsRun[] = $cmd;
15   }
16
17   public function flushCommands() {
18     $out = $this->commandsRun;
19     $this->commandsRun = [];
20     return $out;
21   }
22
23 }