You are here

class MockTestConnection in SimpleTest 7

Mock connection object for test case.

Hierarchy

Expanded class hierarchy of MockTestConnection

File

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