示例#1
0
 public function testAdd()
 {
     $request = new THttpRequest();
     $request->init(null);
     // Simulate a request with just a service
     $_GET['page'] = 'Home';
     $request->resolveRequest(array('page'));
     $request->Add('param1', 'value1');
     self::assertEquals('value1', $request->itemAt('param1'));
 }