Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 6 |
MockTestConnection | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 6 |
run | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
flushCommands | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
<?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; | |
} | |
} |