public function args($key = 0)
{
if (!empty($this->args[$key])) {
return $this->args[$key];
}
return null;
}
public function testArgs() { $request = new Request(); $request->params = array('command' => 'one', 'action' => 'two', 'args' => array('three', 'four', 'five')); $this->assertEqual('five', $request->args(2)); }