/**
  * @param ResultWrapper|array $rows
  *
  * @return Title[]
  */
 private function getChangedTitles($rows)
 {
     $titles = array();
     foreach ($rows as $row) {
         $titles[] = $this->titleFactory->makeTitle($row->rc_namespace, $row->rc_title);
     }
     return $titles;
 }
 public function testMakeTitle()
 {
     $ns = NS_HELP;
     $name = 'TitleFactoryTest-testMakeTitle';
     $fragment = 'Synopsis';
     $factory = new TitleFactory();
     $title = $factory->makeTitle($ns, $name, $fragment);
     $this->assertEquals($ns, $title->getNamespace());
     $this->assertEquals($name, $title->getText());
     $this->assertEquals($fragment, $title->getFragment());
 }