public function testError() { $command = new MockCommand(array('request' => $this->request)); $expected = "ok\n"; $result = $command->error('ok'); $this->assertEqual($expected, $result); }