Example #1
0
 /**
  * Creates a \Nimbles\Http\Request with the test delegate methods
  * @param array|null $options
  * @return \Nimbles\Http\Request
  */
 public function createRequest($options = null)
 {
     $request = new Request($options);
     $request->setDelegate('getInput', array('\\Nimbles\\Http\\TestCase', 'getInput'));
     $request->setDelegate('getServerRaw', array('\\Nimbles\\Http\\TestCase', 'getServer'));
     $request->setDelegate('getCookieRaw', array('\\Nimbles\\Http\\TestCase', 'getCookie'));
     $request->setDelegate('getPostRaw', array('\\Nimbles\\Http\\TestCase', 'getPost'));
     $request->setDelegate('getQueryRaw', array('\\Nimbles\\Http\\TestCase', 'getQuery'));
     $request->setDelegate('createSession', array('\\Nimbles\\Http\\TestCase', 'getReadOnlySession'));
     return $request;
 }