private function getListForParams(array $rawParams)
 {
     $extension = new Extension(Settings::newFromGlobals($GLOBALS));
     $definition = $extension->getListHookDefinition();
     $params = $this->getProcessedParams($definition, $rawParams);
     return $extension->newSubPageListRenderer()->render(self::$pages[$params['page']], $params);
 }
 private function getListForRawParams(array $params)
 {
     $extension = new Extension(Settings::newFromGlobals($GLOBALS));
     $functionRunner = new FunctionRunner($extension->getListHookDefinition(), $extension->getListHookHandler());
     $frame = $this->getMock('PPFrame');
     $frame->expects($this->exactly(count($params)))->method('expand')->will($this->returnArgument(0));
     $result = $functionRunner->run($GLOBALS['wgParser'], $params, $frame);
     return reset($result);
 }