MockTestConnection.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\system\Tests\FileTransferFile
core/modules/system/src/Tests/FileTransfer/MockTestConnection.phpView 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
Name | Description |
---|---|
MockTestConnection | Mock connection object for test case. |