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()); }