protected function param($name)
 {
     return $this->request->request($name, $this->request->query($name));
 }
 public function testRequestReturnsPostParamIfNoQueryParamAvailable()
 {
     $request = new Request(array(), array('client_id' => 'correct'));
     $this->assertEquals('correct', $request->query('client_id', $request->request('client_id')));
 }