clear() public method

Removes all items in the request.
public clear ( )
示例#1
0
 public function testClear()
 {
     $request = new THttpRequest();
     $request->init(null);
     // Simulate a request with just a service
     $_GET['page'] = 'Home';
     $request->resolveRequest(array('page'));
     $request->clear();
     self::assertEquals(0, $request->getCount());
 }