You are here

class MockTestConnection in Drupal 7

Mock connection object for test case.

Hierarchy

Expanded class hierarchy of MockTestConnection

File

modules/simpletest/tests/filetransfer.test, line 154

View source
class MockTestConnection {
  var $commandsRun = array();
  var $connectionString;
  function run($cmd) {
    $this->commandsRun[] = $cmd;
  }
  function flushCommands() {
    $out = $this->commandsRun;
    $this->commandsRun = array();
    return $out;
  }

}

Members